-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
expr: Escape anchor characters within pattern #7842
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
sylvestre
merged 16 commits into
uutils:main
from
frendsick:fix/expr-match-escape-anchor-characters
Apr 27, 2025
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
8e417fa
expr: Escape anchor characters within the core pattern
frendsick 229bc43
expr: Test that starting caret is not escaped
frendsick fe5a350
expr: Test that ending dollar is not escaped
frendsick 7c8bf94
expr: Test that achor characters are escaped correctly
frendsick 7d54304
expr: Add test case from #7663
frendsick 4899ee6
expr: Do not escape end of string anchor ($)
frendsick 613ab99
expr: Do not escape end of string anchor $
frendsick 0ba5ef5
expr: Fix test by escaping dollar character
frendsick bdfa0f6
expr: Fix clippy warning for missing semicolon
frendsick 414f148
expr: Escape start anchor (^) if it is not already escaped
frendsick 69e3058
expr: Remove fixed FixME comment from test
frendsick 98f1f9f
expr: Move some tests from syntax_tree.rs to test_expr.rs
frendsick b112ec6
expr: Unignore fixed test bre10
frendsick 19e5f5f
expr: Optimize parsing the user input pattern
frendsick 71ea130
expr: Test empty pattern for regex
frendsick fe0109b
expr: Autoformat test
frendsick 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
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.