summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_change_stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document_source_change_stream.h')
-rw-r--r--src/mongo/db/pipeline/document_source_change_stream.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/document_source_change_stream.h b/src/mongo/db/pipeline/document_source_change_stream.h
index 0912e79ebd7..9bc9ca54eb5 100644
--- a/src/mongo/db/pipeline/document_source_change_stream.h
+++ b/src/mongo/db/pipeline/document_source_change_stream.h
@@ -190,9 +190,9 @@ public:
static void checkValueType(const Value v, const StringData fieldName, BSONType expectedType);
private:
- static constexpr StringData kRegexAllCollections = R"(\.(?!(\$|system\.)))"_sd;
- static constexpr StringData kRegexAllDBs = "(?!(admin|config|local)).+"_sd;
- static constexpr StringData kRegexCmdColl = R"(\.\$cmd$)"_sd;
+ static constexpr StringData kRegexAllCollections = R"((?!(\$|system\.)))"_sd;
+ static constexpr StringData kRegexAllDBs = R"(^(?!(admin|config|local)\.)[^.]+)"_sd;
+ static constexpr StringData kRegexCmdColl = R"(\$cmd$)"_sd;
// Helper function which throws if the $changeStream fails any of a series of semantic checks.
// For instance, whether it is permitted to run given the current FCV, whether the namespace is