* Encode path using encodeUriSegment, ignoring forward slashes * * @param {string} path Path to encode * @returns {string}
(path)
| 11207 | * @returns {string} |
| 11208 | */ |
| 11209 | function encodePath(path) { |
| 11210 | var segments = path.split('/'), |
| 11211 | i = segments.length; |
| 11212 | |
| 11213 | while (i--) { |
| 11214 | segments[i] = encodeUriSegment(segments[i]); |
| 11215 | } |
| 11216 | |
| 11217 | return segments.join('/'); |
| 11218 | } |
| 11219 | |
| 11220 | function parseAbsoluteUrl(absoluteUrl, locationObj) { |
| 11221 | var parsedUrl = urlResolve(absoluteUrl); |
no test coverage detected