Repository navigation
find/glob: Don't use $. as a non-matching regex - #457
Merged
Merged
Conversation
The oniguruma version built by onig_sys does not include the commit
6f7b0aa ("add ONIG_SYN_BRE_ANCHOR_AT_EDGE_OF_SUBEXP into
ONIG_SYNTAX_POSIX_BASIC and ONIG_SYNTAX_GREP"), causing `$.` to actually
match a literal newline.
Using `$.` is not portable anyway; POSIX says
> A <dollar-sign> ( '$' ) shall be an anchor when used as the last
> character of an entire BRE.
tavianator
force-pushed
the
fix-name-backslash
branch
from
September 25, 2024 17:42
4be8be2 to
e8fdd68
Compare
|
Commit 4be8be2 has GNU testsuite comparison: |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #457 +/- ##
=======================================
Coverage 77.29% 77.29%
=======================================
Files 36 36
Lines 4436 4436
Branches 991 991
=======================================
Hits 3429 3429
Misses 1004 1004
Partials 3 3 ☔ View full report in Codecov by Sentry. |
|
Commit e8fdd68 has GNU testsuite comparison: |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The oniguruma version built by onig_sys does not include the commit
6f7b0aa ("add ONIG_SYN_BRE_ANCHOR_AT_EDGE_OF_SUBEXP into
ONIG_SYNTAX_POSIX_BASIC and ONIG_SYNTAX_GREP"), causing
$.to actuallymatch a literal newline.
Using
$.is not portable anyway; POSIX says