-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[3.x] add escape regex chars to DB Presence Verifier #1992
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1992 +/- ##
=========================================
Coverage 86.75% 86.75%
Complexity 666 666
=========================================
Files 31 31
Lines 1518 1518
=========================================
Hits 1317 1317
Misses 201 201
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1992 +/- ##
=========================================
Coverage 87.04% 87.04%
Complexity 667 667
=========================================
Files 31 31
Lines 1521 1521
=========================================
Hits 1324 1324
Misses 197 197
Continue to review full report at Codecov.
|
@andrei-gafton-rtgt, Update description please |
@andrei-gafton-rtgt add additional test case for this PR |
Codecov Report
@@ Coverage Diff @@
## master #1992 +/- ##
=========================================
Coverage 86.90% 86.90%
Complexity 664 664
=========================================
Files 33 33
Lines 1573 1573
=========================================
Hits 1367 1367
Misses 206 206
Continue to review full report at Codecov.
|
@Smolevich anything is left here? |
Codecov Report
@@ Coverage Diff @@
## master #1992 +/- ##
=========================================
Coverage 87.01% 87.01%
Complexity 664 664
=========================================
Files 33 33
Lines 1556 1556
=========================================
Hits 1354 1354
Misses 202 202
Continue to review full report at Codecov.
|
Add preg_quote to value in getCount for Unique validation with DatabasePresenceVerifier.php in order to correctly escape regex chars in values from DB (eg. "+") Co-Authored-By: andrei-gafton-rtgt <61140282+andrei-gafton-rtgt@users.noreply.github.com>
Add escape regex chars to DB Presence Verifier [mongodb#1992](mongodb#1992) by [@andrei-gafton-rtgt](https://github.com/andrei-gafton-rtgt). Co-Authored-By: andrei-gafton-rtgt <61140282+andrei-gafton-rtgt@users.noreply.github.com>
[3.x] add escape regex chars to DB Presence Verifier
add preg_quote to value in getCount for Unique validation with DatabasePresenceVerifier.php in order to correctly escape regex chars in values from DB (eg. "+")