Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make matches a slice of regexes instead of a single regex #518

Merged
merged 3 commits into from
Feb 5, 2025

Conversation

bchuo
Copy link
Contributor

@bchuo bchuo commented Feb 4, 2025

What this PR does / why we need it: Changes the typing of matches such that it now takes a slice of strings, allowing for easier writing of regex matches for different cases.

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #513

Special notes for your reviewer:

@bchuo bchuo requested a review from a team as a code owner February 4, 2025 14:31
@pmengelbert
Copy link
Contributor

Thanks for the PR! You'll need to run go generate to get the auto-generated docs in line with the current code.

tests.go Outdated Show resolved Hide resolved
@cpuguy83 cpuguy83 merged commit e5badcc into Azure:main Feb 5, 2025
19 checks passed
@bchuo bchuo deleted the make-matches-slice branch February 5, 2025 15:16
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.

[REQ] CheckOutput.Matches should take a slice instead of string
3 participants