* Encode path using encodeUriSegment, ignoring forward slashes * * @param {string} path Path to encode * @returns {string}
(path)
| 12105 | * @returns {string} |
| 12106 | */ |
| 12107 | function encodePath(path) { |
| 12108 | var segments = path.split('/'), |
| 12109 | i = segments.length; |
| 12110 | |
| 12111 | while (i--) { |
| 12112 | segments[i] = encodeUriSegment(segments[i]); |
| 12113 | } |
| 12114 | |
| 12115 | return segments.join('/'); |
| 12116 | } |
| 12117 | |
| 12118 | function parseAbsoluteUrl(absoluteUrl, locationObj) { |
| 12119 | var parsedUrl = urlResolve(absoluteUrl); |
no test coverage detected