fix: correct regex match condition in SyntaxValidator #10017
Annotations
2 errors
Unit Tests:
packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts#L71
expect(received).toContain(expected) // indexOf
Expected substring: "Positional argument 'invalid_value' does not match the regex: ^[a-zA-Z0-9_]+$"
Received string: "
Syntax Error:
You specified the following unknown values: \"invalid_value\".·
Could not interpret them as a group, command name, or positional option.
"
at packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts:71:46
|
Unit Tests
Process completed with exit code 1.
|
Loading