Skip to content

'-Preset' values should be checked for equality before wildcard match#67

Merged
MarkSchofield merged 1 commit intodevelopfrom
mschofie/wildcard-and-literal
Sep 29, 2025
Merged

'-Preset' values should be checked for equality before wildcard match#67
MarkSchofield merged 1 commit intodevelopfrom
mschofie/wildcard-and-literal

Conversation

@MarkSchofield
Copy link
Owner

@MarkSchofield MarkSchofield commented Sep 29, 2025

Fixes #66.

Now that -Preset and -Configuration parameters can be wildcards, matching against [ and ] is broken - since PowerShell interprets that as a character set. This means that asking to build a preset called - say - windows-x64[asan] will not do any work, since 'windows-x64[asan]' -like 'windows-x64[asan]' is false. Testing for -eq first is a reasonable accommodation, but, say, *-x64[asan] would only match the wildcard syntax; you'd have to

*-x64`[asan`]

@MarkSchofield MarkSchofield merged commit 55089a2 into develop Sep 29, 2025
1 check passed
@MarkSchofield MarkSchofield deleted the mschofie/wildcard-and-literal branch September 29, 2025 00:13
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.

Matching presets with [ and ] is broken

1 participant