Skip to content

Commit 49a2227

Browse files
committed
Support single quote imports
1 parent 86a7be5 commit 49a2227

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

0 commit comments

Comments
 (0)