This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Commit c9c7cc7
committed
Fix the regex parsing for valueless parameters
The @apiPrivate parameter does not take any value, and the
@apiDeprecated parameter has an optional value. However, the regular
expression in Parser.prototype.findElements expects that every parameter
has a value. This may lead to the subsequent apiDoc parameter getting
matched into the valueless parameter, removing it from the final
generated apiDocs.
Switching the regular expression from (.+?) to (.*?) allows the
parameter's value to be optional.1 parent 2069f4e commit c9c7cc7
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
| 451 | + | |
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| |||
0 commit comments