MCPcopy Create free account
hub / github.com/JacksonTian/fks / encodePath

Function encodePath

fks_chart/bower_components/angular/angular.js:9236–9245  ·  view source on GitHub ↗

* Encode path using encodeUriSegment, ignoring forward slashes * * @param {string} path Path to encode * @returns {string}

(path)

Source from the content-addressed store, hash-verified

9234 * @returns {string}
9235 */
9236function encodePath(path) {
9237 var segments = path.split('/'),
9238 i = segments.length;
9239
9240 while (i--) {
9241 segments[i] = encodeUriSegment(segments[i]);
9242 }
9243
9244 return segments.join('/');
9245}
9246
9247function parseAbsoluteUrl(absoluteUrl, locationObj, appBase) {
9248 var parsedUrl = urlResolve(absoluteUrl, appBase);

Callers 3

LocationHtml5UrlFunction · 0.85
LocationHashbangUrlFunction · 0.85

Calls 1

encodeUriSegmentFunction · 0.85

Tested by

no test coverage detected