lib/url-pattern/url-match-pattern.js
function () {
        var matchPattern = this.pattern,
            // Check the match pattern of sanity and split it into protocol, host and path
            match = matchPattern.match(regexes.patternSplit);

        if (!match) {
            // This ensures it is a invalid match pattern
            return;
        }

        return {
            protocols: _.uniq(match[1].split(PROTOCOL_DELIMITER)),
            host: match[5],
            port: match[6] && match[6].substr(1), // remove leading `:`
            path: this.globPatternToRegexp(match[7])
        };
    }
function () {
        var matchPattern = this.pattern,
            // Check the match pattern of sanity and split it into protocol, host and path
            match = matchPattern.match(regexes.patternSplit);

        if (!match) {
            // This ensures it is a invalid match pattern
            return;
        }

        return {
            protocols: _.uniq(match[1].split(PROTOCOL_DELIMITER)),
            host: match[5],
            port: match[6] && match[6].substr(1), // remove leading `:`
            path: this.globPatternToRegexp(match[7])
        };
    }
function ( ) { var matchPattern = this . pattern , // Check the match pattern of sanity and split it into protocol, host and path match = matchPattern . match ( regexes . patternSplit ) ; if ( ! match ) { // This ensures it is a invalid match pattern return ; } return { protocols : _ . uniq ( match [ 1 ] . split ( PROTOCOL_DELIMITER ) ) , host : match [ 5 ] , port : match [ 6 ] && match [ 6 ] . substr ( 1 ) , // remove leading `:` path : this . globPatternToRegexp ( match [ 7 ] ) } ; }
Used to generate the match regex object from the match string we have.

@private
@returns {*} Match regex object
Used to generate the match regex object from the match string we have .