* Encode path using encodeUriSegment, ignoring forward slashes * * @param {string} path Path to encode * @returns {string}
(path)
| 11346 | * @returns {string} |
| 11347 | */ |
| 11348 | function encodePath(path) { |
| 11349 | var segments = path.split('/'), |
| 11350 | i = segments.length; |
| 11351 | |
| 11352 | while (i--) { |
| 11353 | segments[i] = encodeUriSegment(segments[i]); |
| 11354 | } |
| 11355 | |
| 11356 | return segments.join('/'); |
| 11357 | } |
| 11358 | |
| 11359 | function parseAbsoluteUrl(absoluteUrl, locationObj) { |
| 11360 | var parsedUrl = urlResolve(absoluteUrl); |
no test coverage detected