diff --git a/lib/bson/regexp.js b/lib/bson/regexp.js index c364075d..6429ba66 100644 --- a/lib/bson/regexp.js +++ b/lib/bson/regexp.js @@ -14,7 +14,7 @@ function alphabetize(str) { * @return {BSONRegExp} A MinKey instance */ function BSONRegExp(pattern, options) { - if (!(this instanceof BSONRegExp)) return new BSONRegExp(); + if (!(this instanceof BSONRegExp)) return new BSONRegExp(pattern, options); // Execute this._bsontype = 'BSONRegExp';