We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4116d7a commit 8bc5b3aCopy full SHA for 8bc5b3a
index.js
@@ -27,7 +27,7 @@ if (!fs.existsSync(moduleRootAbsolute)) {
27
28
const importRegEx =
29
/import\(["']([^"']*)["']\)(?:\.([^ \.\|\}><,\)=#\n]*))?([ \.\|\}><,\)=#\n])/g;
30
-const typedefRegEx = /@typedef \{[^\}]*\} (\S+)/g;
+const typedefRegEx = /@typedef\s*(?:\{[^\}]*\}\s*)?([^\{\}\s]+)/g;
31
const noClassdescRegEx = /@(typedef|module|type)/;
32
const extensionReplaceRegEx = /\.m?js$/;
33
const slashRegEx = /\\/g;
0 commit comments