Skip to content

Commit

Permalink
Fix typedef regex to allow typedefs without contraints
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Knights committed Sep 10, 2024
1 parent 4116d7a commit 8bc5b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (!fs.existsSync(moduleRootAbsolute)) {

const importRegEx =
/import\(["']([^"']*)["']\)(?:\.([^ \.\|\}><,\)=#\n]*))?([ \.\|\}><,\)=#\n])/g;
const typedefRegEx = /@typedef \{[^\}]*\} (\S+)/g;
const typedefRegEx = /@typedef\s*(?:\{[^\}]*\}\s*)?([^\{\}\s]+)/g;
const noClassdescRegEx = /@(typedef|module|type)/;
const extensionReplaceRegEx = /\.m?js$/;
const slashRegEx = /\\/g;
Expand Down

0 comments on commit 8bc5b3a

Please sign in to comment.