lib/index.js
function matchPaths(pageLinks, path) {
  let result;
  path = _.compact(path.split('/'));
  result = _.filter(_.keys(pageLinks), key => {
    const path2 = _.compact(key.split('/'));
    const noMatch = _.filter(path2, fragment => {
      return fragment.substring(0, 1) !== ':' && _.indexOf(path, fragment) !== _.indexOf(path2, fragment);
    });
    return noMatch.length === 0;
  });
  return result[0];
}
function matchPaths(pageLinks, path) {
  let result;
  path = _.compact(path.split('/'));
  result = _.filter(_.keys(pageLinks), key => {
    const path2 = _.compact(key.split('/'));
    const noMatch = _.filter(path2, fragment => {
      return fragment.substring(0, 1) !== ':' && _.indexOf(path, fragment) !== _.indexOf(path2, fragment);
    });
    return noMatch.length === 0;
  });
  return result[0];
}
function matchPaths ( pageLinks , path ) { let result ; path = _ . compact ( path . split ( '/' ) ) ; result = _ . filter ( _ . keys ( pageLinks ) , key => { const path2 = _ . compact ( key . split ( '/' ) ) ; const noMatch = _ . filter ( path2 , fragment => { return fragment . substring ( 0 , 1 ) !== ':' && _ . indexOf ( path , fragment ) !== _ . indexOf ( path2 , fragment ) ; } ) ; return noMatch . length === 0 ; } ) ; return result [ 0 ] ; }
Match paths, skipping arguments.
@param path1
@param path2
@returns {boolean}
Match paths skipping arguments .