Skip to content

Commit 040d014

Browse files
committed
Prevented extraneous leading characters.
1 parent 612715e commit 040d014

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
@@ -26,7 +26,7 @@ exports.parseInput = function (input, config, pkg) {
2626
utils.walk(input).forEach(function (file) {
2727

2828
files.push({
29-
name: file.replace(input, '').replace(/^\//, ''),
29+
name: file.replace(input, '').replace(/^[\.\/]{1,2}/, ''),
3030
contents: fs.readFileSync(file, 'utf8')
3131
});
3232

0 commit comments

Comments
 (0)