KEMBAR78
`<regex>`: Properly parse dollar anchors in basic and grep mode by muellerj2 · Pull Request #5362 · microsoft/STL · GitHub
Skip to content

Conversation

@muellerj2
Copy link
Contributor

This PR provides the symmetric change to #5165 for the dollar sign in basic and grep mode. Similar to the handling of the caret anchor, this PR recognizes a dollar sign as an anchor in a basic regular expression if it is at the end of an alternative. It does so by doing a bit of lookahead.

Drive-by: Remove a duplicated test that was accidentally added in #5165.

@muellerj2 muellerj2 requested a review from a team as a code owner March 25, 2025 19:24
@github-project-automation github-project-automation bot moved this to Initial Review in STL Code Reviews Mar 25, 2025
@StephanTLavavej StephanTLavavej added bug Something isn't working regex meow is a substring of homeowner labels Mar 25, 2025
@StephanTLavavej StephanTLavavej self-assigned this Mar 25, 2025
@StephanTLavavej
Copy link
Member

Thanks! 😸 I pushed changes to fix product code logic (even though it "can't happen") and various copy-paste relics in the test - please double-check.

@StephanTLavavej StephanTLavavej removed their assignment Apr 7, 2025
@StephanTLavavej StephanTLavavej moved this from Initial Review to Ready To Merge in STL Code Reviews Apr 7, 2025
@StephanTLavavej StephanTLavavej moved this from Ready To Merge to Merging in STL Code Reviews Apr 9, 2025
@StephanTLavavej StephanTLavavej self-assigned this Apr 9, 2025
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 13f1f16 into microsoft:main Apr 10, 2025
39 checks passed
@github-project-automation github-project-automation bot moved this from Merging to Done in STL Code Reviews Apr 10, 2025
@StephanTLavavej
Copy link
Member

😻 💵 🤑

@muellerj2 muellerj2 deleted the regex-properly-parse-dollar-anchors-in-basic-regexes branch April 13, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working regex meow is a substring of homeowner

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants