Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
Signed-off-by: Jota Martos <jotamartos@vmware.com>
  • Loading branch information
jotamartos committed Oct 18, 2023
1 parent 7602b30 commit d0ff1c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ function applyModifiers(param, config) {
// unless another modifier is applied at the same time. In that case, the second
// modifier specifies the default value.
break;
case modifier.match(new RegExp(config.modifiers.default))?.input:
case modifier.match(new RegExp(config.modifiers.default))?.input: {
const defaultSpacesRegex = `${config.modifiers.default}:\\s*`;
param.value = modifier.replace(new RegExp(defaultSpacesRegex),'');
param.value = modifier.replace(new RegExp(defaultSpacesRegex), '');
break;
}
default:
throw new Error(`Unknown modifier: ${modifier} for parameter ${param.name}`);
}
Expand Down

0 comments on commit d0ff1c0

Please sign in to comment.