Skip to content

Commit

Permalink
update params
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitskvmdam committed Dec 18, 2022
1 parent 2029f3f commit dc75194
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tmpl/params.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@
}

if (parentParam && parentParam.name && param.name) {
paramRegExp = new RegExp('^(?:' + parentParam.name + '(?:\\[\\])*)\\.(.+)$');
try {
paramRegExp = new RegExp('^(?:' + parentParam.name + '(?:\\[\\])*)\\.(.+)$');
}
catch (e) {
// there's probably a typo in the JSDoc comment that resulted in a weird
// parameter name
return;
}

if ( paramRegExp.test(param.name) ) {
param.name = RegExp.$1;
Expand Down

0 comments on commit dc75194

Please sign in to comment.