* Encode path using encodeUriSegment, ignoring forward slashes * * @param {string} path Path to encode * @returns {string}
(path)
| 13041 | * @returns {string} |
| 13042 | */ |
| 13043 | function encodePath(path) { |
| 13044 | var segments = path.split('/'), |
| 13045 | i = segments.length; |
| 13046 | |
| 13047 | while (i--) { |
| 13048 | segments[i] = encodeUriSegment(segments[i]); |
| 13049 | } |
| 13050 | |
| 13051 | return segments.join('/'); |
| 13052 | } |
| 13053 | |
| 13054 | function parseAbsoluteUrl(absoluteUrl, locationObj) { |
| 13055 | var parsedUrl = urlResolve(absoluteUrl); |
no test coverage detected