Skip to content

Commit b724950

Browse files
committed
Fixed regex to only remove pattern from beginning of string.
1 parent 523f6d6 commit b724950

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
@@ -14,7 +14,7 @@ const DEFAULT_IGNORE_PATHS = [
1414
'!./Gulpfile.js'
1515
];
1616

17-
const REPLACE_FILENAME_REGEXP = new RegExp(`${process.cwd()}/|./`);
17+
const REPLACE_FILENAME_REGEXP = new RegExp(`^(${process.cwd()}/|./)`);
1818

1919
/**
2020
* Parse an input file with parser.

0 commit comments

Comments
 (0)