- Notifications
You must be signed in to change notification settings - Fork1.6k
<regex>: Allow initial] to start character ranges in POSIX regular expressions#5364
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
<regex>: Allow initial] to start character ranges in POSIX regular expressions#5364
Uh oh!
There was an error while loading.Please reload this page.
Conversation
<regex>: Allow initial ] to start character ranges in POSIX regular expressions<regex>: Allow initial] to start character ranges in POSIX regular expressionsUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
StephanTLavavej commentedApr 2, 2025
Thanks! 😻 I pushed changes to significantly expand the test coverage. |
StephanTLavavej commentedApr 9, 2025
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
StephanTLavavej commentedApr 10, 2025
Resolved adjacent-add conflict in |
5a1cbde intomicrosoft:mainUh oh!
There was an error while loading.Please reload this page.
StephanTLavavej commentedApr 10, 2025
🥕 💵 ⭐ |
Fixes a regex miscompilation noticed in#5165.
The POSIX standard says that the right bracket ] is not special at the beginning of a bracketed character class (https://pubs.opengroup.org/onlinepubs/009696699/basedefs/xbd_chap09.html#tag_09_03_05). This means that an initial ] behaves like any other character, so it may also be the start of a character range.