* Flatten a path, it removes the leading "/" * * @param {String} href * @return {String}
(href)
| 46 | * @return {String} |
| 47 | */ |
| 48 | function flatten(href) { |
| 49 | href = normalize(href); |
| 50 | if (href[0] == '/') { |
| 51 | href = normalize(href.slice(1)); |
| 52 | } |
| 53 | |
| 54 | return href; |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Convert a relative path to absolute |
nothing calls this directly
no test coverage detected
searching dependent graphs…