diff options
author | Jennifer Peshansky <jennifer.peshansky@mongodb.com> | 2022-06-27 13:30:46 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-27 14:52:18 +0000 |
commit | 468f41278b6b30aa602e81010cf7ef7973d97e4d (patch) | |
tree | 82c1c168aa27fce91b4e39759ced055401f05de2 /src/mongo/db/matcher/schema/json_schema_parser.cpp | |
parent | 16924398f1f7ebc78b94a42371f156de4a3b10ae (diff) | |
download | mongo-468f41278b6b30aa602e81010cf7ef7973d97e4d.tar.gz |
SERVER-67162 Integrate new PCRE2 wrapper
Diffstat (limited to 'src/mongo/db/matcher/schema/json_schema_parser.cpp')
-rw-r--r-- | src/mongo/db/matcher/schema/json_schema_parser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/matcher/schema/json_schema_parser.cpp b/src/mongo/db/matcher/schema/json_schema_parser.cpp index dab65bab837..7b664daac63 100644 --- a/src/mongo/db/matcher/schema/json_schema_parser.cpp +++ b/src/mongo/db/matcher/schema/json_schema_parser.cpp @@ -739,8 +739,7 @@ StatusWithMatchExpression parseAllowedProperties( // that can't match documents. if (requiredMissingID) { for (const auto& pattern : patternPropertiesVec) { - // for (int i = 0; i < patternPropertiesVec.size(); ++i) { - if (pattern.first.regex->FullMatch("_id")) { + if (pattern.first.regex->matchView("_id", pcre::ANCHORED | pcre::ENDANCHORED)) { requiredMissingID = false; break; } |