-
Notifications
You must be signed in to change notification settings - Fork 1.6k
<regex>
: Revise caret parsing in basic and grep mode
#5165
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
Merged
StephanTLavavej
merged 22 commits into
microsoft:main
from
muellerj2:fix-negated-char-classes-in-basic-regexes
Mar 24, 2025
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
fe5a1f1
`<regex>`: Circumflex ^ should negate character classes in basic regu…
muellerj2 fbe0a0c
Revert product code.
StephanTLavavej f787265
Move (and De Morgan) `_L_anch_rstr` logic to "add bol node".
StephanTLavavej 3269019
circumflex => Caret
StephanTLavavej fcd95cf
Expand test coverage.
StephanTLavavej edada37
fix miscompilation of double carets and treat carets as anchors at th…
muellerj2 d3de073
add test coverage for double carets and caret anchors at the beginnin…
muellerj2 625e1a5
Make _L_star_beg setting orthogonal to _L_anchr_restr
muellerj2 3363b6d
fix inverted condition
muellerj2 b6c2765
add test coverage for initial * in expressions, subexpressions and al…
muellerj2 f10b6b2
Merge branch 'main' into fix-negated-char-classes-in-basic-regexes
muellerj2 38ed60b
adjust comment
muellerj2 f827e28
extend and clean up tests
muellerj2 c93343d
Merge branch 'main' into fix-negated-char-classes-in-basic-regexes
StephanTLavavej 4aa7599
Merge branch 'main' into fix-negated-char-classes-in-basic-regexes
StephanTLavavej 3fa5dc4
Adjust newlines.
StephanTLavavej 0dc4ca7
Add 'the'.
StephanTLavavej 003382a
Simplify raw string literals: `R"-(...)-"` => `R"(...)"`
StephanTLavavej 9076887
Fix inconsistent pattern.
StephanTLavavej e1dd4b9
Use raw string literals when newlines aren't involved.
StephanTLavavej 4bc72f5
Fix mistakenly duplicated test line.
StephanTLavavej f6725da
Extract basic-only and grep-only tests into separate functions.
StephanTLavavej File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.