You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure these boxes are checked before submitting your issue - thank you!
(If your issue is neither a both bug nor a request, please write in a free style)
The problem is that there is a regular expression created in the function _findByName() on line 116 of node_modules/esdoc-publish-html-plugin/out/src/Builder/DocBuilder.js. This regular expression if created by escaping * in the text. However, your type includes brackets and the regular expression ends up having unbalanced unescaped brackets.
I fixed it by replacing the existing
const regexp = new RegExp(`[~]${name.replace("*", '\\*')}$`); // if name is `*`, need to escape.
with a more comprehensive escaping of the regular expression characters
const regexp = new RegExp(`[~]${name.replace(/([*.()[\]|])/g, '\\$1')}$`); // if name is `*`, need to escape.
Make sure these boxes are checked before submitting your issue - thank you!
(If your issue is neither a both bug nor a request, please write in a free style)
Short summary of your issue
The following code causes ESDoc to error:
If I change to
@param {number[]|string[]} param ...
, then it works.Input data for reproducing
Configuration
Codes
(see above)
Output data
Log
Screen shot of documentation
N/A
Exception output (if possible)
Log
(see above)
Screen shot of documentation
N/A
Your environment
The text was updated successfully, but these errors were encountered: