Skip to content

Commit b616023

Browse files
committed
Prevent leading forward slash.
1 parent 15a74f5 commit b616023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/doxdox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ exports.parseInput = function (input, output, config) {
2424
utils.walk(input).forEach(function (file) {
2525

2626
files.push({
27-
name: file.replace(input, ''),
27+
name: file.replace(input, '').replace(/^\//, ''),
2828
contents: fs.readFileSync(file, 'utf8')
2929
});
3030

0 commit comments

Comments
 (0)