(base, path)
| 61 | |
| 62 | })(); else (function() { |
| 63 | function resolvePath(base, path) { |
| 64 | if (path[0] == "/") return path; |
| 65 | var slash = base.lastIndexOf("/"), m; |
| 66 | if (slash >= 0) path = base.slice(0, slash + 1) + path; |
| 67 | while (m = /[^\/]*[^\/\.][^\/]*\/\.\.\//.exec(path)) |
| 68 | path = path.slice(0, m.index) + path.slice(m.index + m[0].length); |
| 69 | return path.replace(/(^|[^\.])\.\//g, "$1"); |
| 70 | } |
| 71 | |
| 72 | resolveToFile = function(name, parentFile) { |
| 73 | return /^\.\.?\//.test(name) ? resolvePath(parentFile, name) : name; |
no outgoing calls
no test coverage detected
searching dependent graphs…