Skip to content

Fix ThrowOnUsageError false positive on parameter values containing d…#699

Open
LiYueqian-James wants to merge 1 commit intomicrosoft:v1.16from
LiYueqian-James:yueqianli/fix-throw-on-usage-error-v1.16.40
Open

Fix ThrowOnUsageError false positive on parameter values containing d…#699
LiYueqian-James wants to merge 1 commit intomicrosoft:v1.16from
LiYueqian-James:yueqianli/fix-throw-on-usage-error-v1.16.40

Conversation

@LiYueqian-James
Copy link
Copy Markdown
Contributor

…ouble-dash prefixes

The Scenario 3 regex used IsMatch with an unanchored pattern (--[a-z]+), causing substring matches on values like DriverInstallationCommandArguments=--silent inside --parameters. Changed to a full-string anchored regex (^--[a-z][-a-z]*$) so only standalone option-like tokens are flagged as unsupported.

…ouble-dash prefixes

The Scenario 3 regex used IsMatch with an unanchored pattern (--[a-z]+),
causing substring matches on values like DriverInstallationCommandArguments=--silent
inside --parameters. Changed to a full-string anchored regex (^--[a-z][-a-z]*$) so
only standalone option-like tokens are flagged as unsupported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant