Skip to content

Commit

Permalink
Merge pull request #61 from Daniel-Knights/fix-typedef-regex
Browse files Browse the repository at this point in the history
Fix typedef regex to allow typedefs without contraints
  • Loading branch information
ahocevar authored Sep 13, 2024
2 parents e07b6d4 + 8bc5b3a commit 369ae45
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 @@ -6,7 +6,7 @@ const addInherited = require('jsdoc/augment').addInherited; // eslint-disable-li

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 extensionEnsureRegEx = /(\.js)?$/;
Expand Down

0 comments on commit 369ae45

Please sign in to comment.