MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / encodePath

Function encodePath

web/static/bower_components/angular/angular.js:11348–11357  ·  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

11346 * @returns {string}
11347 */
11348function 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
11359function parseAbsoluteUrl(absoluteUrl, locationObj) {
11360 var parsedUrl = urlResolve(absoluteUrl);

Callers 3

LocationHtml5UrlFunction · 0.85
LocationHashbangUrlFunction · 0.85

Calls 1

encodeUriSegmentFunction · 0.70

Tested by

no test coverage detected