Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
ALL
-
Repl 2020-05-18
-
48
Description
In this example, I would expect the "find" function to return the other collection.
MongoDB shell version v4.4.0-rc3
|
> collName = "testcoll"
|
testcoll
|
> a= new RegExp("system\.drop\..*\." + collName + "$");
|
/system.drop..*.testcoll$/
|
> b = ["system.drop.1588746254i1t1.r_testcoll", "system.drop.1588746258i5t1.testcoll"]
|
[
|
"system.drop.1588746254i1t1.r_testcoll",
|
"system.drop.1588746258i5t1.testcoll"
|
]
|
> b.find(c => a.test(c))
|
system.drop.1588746254i1t1.r_testcoll
|