Skip to content

Commit

Permalink
fix: correct regex match condition in SyntaxValidator
Browse files Browse the repository at this point in the history
Signed-off-by: MAVRICK-1 <[email protected]>
  • Loading branch information
MAVRICK-1 committed Dec 11, 2024
1 parent ac260f4 commit beff3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/imperative/src/cmd/src/syntax/SyntaxValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export class SyntaxValidator {
if (!(commandArguments[positional.name] == null)) {
if (positional.regex) {
if (commandArguments[positional.name]
.toString().match(new RegExp(positional.regex) == null)) {
.toString().match(new RegExp(positional.regex)) == null) {
valid = false;
this.positionalParameterInvalid(positional,
commandArguments[positional.name], responseObject);
Expand Down

0 comments on commit beff3d6

Please sign in to comment.