node_modules/bson/dist/bson.browser.esm.js
/**
     * @param pattern - The regular expression pattern to match
     * @param options - The regular expression options
     */
@param pattern - The regular expression pattern to match
@param options - The regular expression options
@param pattern - The regular expression pattern to match @param options - The regular expression options
function BSONRegExp(pattern, options) {
        if (!(this instanceof BSONRegExp))
            return new BSONRegExp(pattern, options);
        this.pattern = pattern;
        this.options = alphabetize(options !== null && options !== void 0 ? options : '');
        for (var i = 0; i < this.options.length; i++) {
            if (!(this.options[i] === 'i' ||
                this.options[i] === 'm' ||
                this.options[i] === 'x' ||
                this.options[i] === 'l' ||
                this.options[i] === 's' ||
                this.options[i] === 'u')) {
                throw new Error("The regular expression option [" + this.options[i] + "] is not supported");
            }
        }
    }
function BSONRegExp ( pattern , options ) { if ( ! ( this instanceof BSONRegExp ) ) return new BSONRegExp ( pattern , options ) ; this . pattern = pattern ; this . options = alphabetize ( options !== null && options !== void 0 ? options : '' ) ; for ( var i = 0 ; i < this . options . length ; i ++ ) { if ( ! ( this . options [ i ] === 'i' || this . options [ i ] === 'm' || this . options [ i ] === 'x' || this . options [ i ] === 'l' || this . options [ i ] === 's' || this . options [ i ] === 'u' ) ) { throw new Error ( "The regular expression option [" + this . options [ i ] + "] is not supported" ) ; } } }
@param pattern - The regular expression pattern to match
 @param options - The regular expression options
@param pattern - The regular expression pattern to match @param options - The regular expression options
// Validate options