index.js
function checkPath(id)
{
  var i;

  for (i = 0; i < this.pathsKeys.length; i++)
  {
    if (id.indexOf(this.pathsKeys[i]) == 0)
    {
      if (this.paths[this.pathsKeys[i]] == 'empty:')
      {
        id = 'empty:';
      }
      else
      {
        id = id.replace(this.pathsKeys[i], this.paths[this.pathsKeys[i]]);
      }
      break;
    }
  }

  return id;
}
function checkPath(id)
{
  var i;

  for (i = 0; i < this.pathsKeys.length; i++)
  {
    if (id.indexOf(this.pathsKeys[i]) == 0)
    {
      if (this.paths[this.pathsKeys[i]] == 'empty:')
      {
        id = 'empty:';
      }
      else
      {
        id = id.replace(this.pathsKeys[i], this.paths[this.pathsKeys[i]]);
      }
      break;
    }
  }

  return id;
}
function checkPath ( id ) { var i ; for ( i = 0 ; i < this . pathsKeys . length ; i ++ ) { if ( id . indexOf ( this . pathsKeys [ i ] ) == 0 ) { if ( this . paths [ this . pathsKeys [ i ] ] == 'empty:' ) { id = 'empty:' ; } else { id = id . replace ( this . pathsKeys [ i ] , this . paths [ this . pathsKeys [ i ] ] ) ; } break ; } } return id ; }
check path aliases
check path aliases