build/web/c0.js
function extractParams(pattern, path) {
    var _compilePattern = compilePattern(pattern);

    var matcher = _compilePattern.matcher;
    var paramNames = _compilePattern.paramNames;

    var match = path.match(matcher);

    if (!match) {
      return null;
    }var params = {};

    paramNames.forEach(function (paramName, index) {
      params[paramName] = match[index + 1];
    });

    return params;
  }
function extractParams(pattern, path) {
    var _compilePattern = compilePattern(pattern);

    var matcher = _compilePattern.matcher;
    var paramNames = _compilePattern.paramNames;

    var match = path.match(matcher);

    if (!match) {
      return null;
    }var params = {};

    paramNames.forEach(function (paramName, index) {
      params[paramName] = match[index + 1];
    });

    return params;
  }
function extractParams ( pattern , path ) { var _compilePattern = compilePattern ( pattern ) ; var matcher = _compilePattern . matcher ; var paramNames = _compilePattern . paramNames ; var match = path . match ( matcher ) ; if ( ! match ) { return null ; } var params = { } ; paramNames . forEach ( function ( paramName , index ) { params [ paramName ] = match [ index + 1 ] ; } ) ; return params ; }
Extracts the portions of the given URL path that match the given pattern
and returns an object of param name => value pairs. Returns null if the
pattern does not match the given path.
Extracts the portions of the given URL path that match the given pattern and returns an object of param name = > value pairs . Returns null if the pattern does not match the given path .