-
Notifications
You must be signed in to change notification settings - Fork 951
Fix matching regex word-boundary (\b) in strings replace #9997
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
Fix matching regex word-boundary (\b) in strings replace #9997
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-22.02 #9997 +/- ##
================================================
- Coverage 10.49% 10.40% -0.09%
================================================
Files 119 119
Lines 20305 20556 +251
================================================
+ Hits 2130 2139 +9
- Misses 18175 18417 +242
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - some minor improvements to const
ness might be possible, but those are non-blocking.
rerun tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
rerun tests |
1 similar comment
rerun tests |
@gpucibot merge |
Closes #9950
Fixes matching a single word-boundary (BOW) regex pattern. This pattern will match word boundaries and not any actual characters. This means the
(begin,end)
position values will be equal. The replace code was always expectingbegin < end
character range to replace. The logic has been updated to allow for this case.Additional gtests have been added that include a single
\b
pattern character.