Skip to content

Commit

Permalink
fix(core/pipeline): Allow single letter variable names for Cameron Fi…
Browse files Browse the repository at this point in the history
…eber to abuse (#8379)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
christopherthielen and mergify[bot] committed Jun 24, 2020
1 parent 9c418d5 commit a30de43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface IEvaluatedVariable {
}

const variableNameValidator: IValidator = (val: string, label: string) =>
!val.match(/^[a-zA-Z_][a-zA-Z0-9_]+$/) &&
!val.match(/^[a-zA-Z_][a-zA-Z0-9_]*$/) &&
errorMessage(`${label} should consist only of letters, numbers, or underscore`);

const duplicateKeyValidatorFactory = (variables: IEvaluatedVariable[] = []) => {
Expand Down

0 comments on commit a30de43

Please sign in to comment.