Skip to content

Commit b40f868

Browse files
authored
Merge pull request #2 from openlayers/quotes
Support single quote imports
2 parents 86a7be5 + 49a2227 commit b40f868

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)