lib/url-pattern/url-match-pattern.js
function (options) {
        _.has(options, 'pattern') && (_.isString(options.pattern) && !_.isEmpty(options.pattern)) &&
            (this.pattern = options.pattern);

        // create a match pattern and store it on cache
        this._matchPatternObject = this.createMatchPattern();
    }
function (options) {
        _.has(options, 'pattern') && (_.isString(options.pattern) && !_.isEmpty(options.pattern)) &&
            (this.pattern = options.pattern);

        // create a match pattern and store it on cache
        this._matchPatternObject = this.createMatchPattern();
    }
function ( options ) { _ . has ( options , 'pattern' ) && ( _ . isString ( options . pattern ) && ! _ . isEmpty ( options . pattern ) ) && ( this . pattern = options . pattern ) ; // create a match pattern and store it on cache this . _matchPatternObject = this . createMatchPattern ( ) ; }
Assigns the given properties to the UrlMatchPattern.

@param {{ pattern: (string) }} options
Assigns the given properties to the UrlMatchPattern .