We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78d0c9f commit dd3c232Copy full SHA for dd3c232
lib/bson/regexp.js
@@ -14,7 +14,7 @@ function alphabetize(str) {
14
* @return {BSONRegExp} A MinKey instance
15
*/
16
function BSONRegExp(pattern, options) {
17
- if (!(this instanceof BSONRegExp)) return new BSONRegExp();
+ if (!(this instanceof BSONRegExp)) return new BSONRegExp(pattern, options);
18
19
// Execute
20
this._bsontype = 'BSONRegExp';
0 commit comments