MCPcopy Create free account
hub / github.com/aosabook/500lines / encodePath

Function encodePath

spreadsheet/code/lib/angular.js:10334–10343  ·  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

10332 * @returns {string}
10333 */
10334function encodePath(path) {
10335 var segments = path.split('/'),
10336 i = segments.length;
10337
10338 while (i--) {
10339 segments[i] = encodeUriSegment(segments[i]);
10340 }
10341
10342 return segments.join('/');
10343}
10344
10345function parseAbsoluteUrl(absoluteUrl, locationObj, appBase) {
10346 var parsedUrl = urlResolve(absoluteUrl, appBase);

Callers 3

LocationHtml5UrlFunction · 0.85
LocationHashbangUrlFunction · 0.85

Calls 2

encodeUriSegmentFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected