Skip to content

Commit b2b3a43

Browse files
committed
Replace imports also when symbol contains a hash
1 parent 32b90eb commit b2b3a43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if (!fs.existsSync(moduleRootAbsolute)) {
1515
throw new Error('Directory "' + moduleRootAbsolute + '" does not exist. Check the "typescript.moduleRoot" config option for jsdoc-plugin-typescript');
1616
}
1717

18-
const importRegEx = /import\(["']([^"']*)["']\)\.([^ \.\|\}><,\)=\n]*)([ \.\|\}><,\)=\n])/g;
18+
const importRegEx = /import\(["']([^"']*)["']\)\.([^ \.\|\}><,\)=#\n]*)([ \.\|\}><,\)=#\n])/g;
1919
const typedefRegEx = /@typedef \{[^\}]*\} ([^ \r?\n?]*)/;
2020
const noClassdescRegEx = /@(typedef|module|type)/;
2121
const slashRegEx = /\\/g;

0 commit comments

Comments
 (0)