diff options
author | Arun Banala <arun.banala@mongodb.com> | 2019-04-23 12:31:41 +0100 |
---|---|---|
committer | Arun Banala <arun.banala@mongodb.com> | 2019-04-30 11:13:19 +0100 |
commit | 7ea3f16dc509b9b0cf03775fd7fcd153a3de7d7f (patch) | |
tree | 5a35007eb9a2b2ffc376a2e97cbbded14acfc44a /src/mongo/db/matcher | |
parent | 3d2cb8571b68999c10a5fab5bd0e8b9e5e498337 (diff) | |
download | mongo-7ea3f16dc509b9b0cf03775fd7fcd153a3de7d7f.tar.gz |
SERVER-40584 Regex agg expressions should not inherit from ExpressionFixedArity
Diffstat (limited to 'src/mongo/db/matcher')
-rw-r--r-- | src/mongo/db/matcher/expression_leaf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/matcher/expression_leaf.cpp b/src/mongo/db/matcher/expression_leaf.cpp index e379c1c24d0..73dcd536a3f 100644 --- a/src/mongo/db/matcher/expression_leaf.cpp +++ b/src/mongo/db/matcher/expression_leaf.cpp @@ -203,7 +203,7 @@ RegexMatchExpression::RegexMatchExpression(StringData path, const BSONElement& e : LeafMatchExpression(REGEX, path), _regex(e.regex()), _flags(e.regexFlags()), - _re(new pcrecpp::RE(_regex.c_str(), regex_util::flags2PcreOptions(_flags, true))) { + _re(new pcrecpp::RE(_regex.c_str(), regex_util::flagsToPcreOptions(_flags, true))) { uassert(ErrorCodes::BadValue, "regex not a regex", e.type() == RegEx); _init(); } @@ -212,7 +212,7 @@ RegexMatchExpression::RegexMatchExpression(StringData path, StringData regex, St : LeafMatchExpression(REGEX, path), _regex(regex.toString()), _flags(options.toString()), - _re(new pcrecpp::RE(_regex.c_str(), regex_util::flags2PcreOptions(_flags, true))) { + _re(new pcrecpp::RE(_regex.c_str(), regex_util::flagsToPcreOptions(_flags, true))) { _init(); } |