We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f08274 commit 62affb7Copy full SHA for 62affb7
index.js
@@ -16,7 +16,7 @@ function NS(ns) {
16
this.collection = ns.slice(this.dotIndex + 1);
17
}
18
19
- this.system = /^system\./.test(this.collection);
+ this.system = /^(?:system|enxcol_)\./.test(this.collection);
20
this.oplog = /local\.oplog\.(\$main|rs)/.test(ns);
21
22
this.command =
test.js
@@ -42,6 +42,9 @@ describe('ns', function() {
42
it('should acccept `a.system.foo`', function() {
43
assert(ns('a.system.foo').special);
44
});
45
+ it('should acccept `a.enxcol_.foo`', function() {
46
+ assert(ns('a.enxcol_.foo').special);
47
+ });
48
it('should not accept `a.foo`', function() {
49
assert.equal(ns('a.foo').special, false);
50
0 commit comments