diff options
Diffstat (limited to 'src/mongo/db/matcher/expression_parser.cpp')
-rw-r--r-- | src/mongo/db/matcher/expression_parser.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/matcher/expression_parser.cpp b/src/mongo/db/matcher/expression_parser.cpp index 8a055626399..e75fa98d8e0 100644 --- a/src/mongo/db/matcher/expression_parser.cpp +++ b/src/mongo/db/matcher/expression_parser.cpp @@ -1372,12 +1372,6 @@ StatusWithMatchExpression parseNot(StringData name, return parseStatus; } - for (size_t i = 0; i < theAnd->numChildren(); i++) { - if (theAnd->getChild(i)->matchType() == MatchExpression::REGEX) { - return {ErrorCodes::BadValue, "$not cannot have a regex"}; - } - } - return {stdx::make_unique<NotMatchExpression>(theAnd.release())}; } |