(path, alias)
| 50 | } |
| 51 | |
| 52 | function isPathMatchesAlias (path, alias) { |
| 53 | // Matching /^alias(\/|$)/ |
| 54 | if (path.indexOf(alias) === 0) { |
| 55 | if (path.length === alias.length) return true |
| 56 | if (path[alias.length] === '/') return true |
| 57 | } |
| 58 | |
| 59 | return false |
| 60 | } |
| 61 | |
| 62 | function addPathHelper (path, targetArray) { |
| 63 | path = nodePath.normalize(path) |