Skip to content

Commit

Permalink
allowNames should normalize to internal param representation
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Vigil <[email protected]>
  • Loading branch information
ahvigil committed Dec 19, 2023
1 parent bca3393 commit 43649da
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,8 @@ class ScriptBinding extends WorkflowBinding {

private ParamsMap allowNames(Set names) {
for( String name : names ) {
final name2 = name.contains('-') ? hyphenToCamelCase(name) : camelCaseToHyphen(name)
readOnlyNames.remove(name)
readOnlyNames.remove(name2)
final normalizedName = normalizeToCamelCase(name)
readOnlyNames.remove(normalizedName)
}
return this
}
Expand Down

0 comments on commit 43649da

Please sign in to comment.