MCPcopy
hub / github.com/binux/qiandao / encodePath

Function encodePath

web/static/components/angularjs/angular.js:9125–9134  ·  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

9123 * @returns {string}
9124 */
9125function encodePath(path) {
9126 var segments = path.split('/'),
9127 i = segments.length;
9128
9129 while (i--) {
9130 segments[i] = encodeUriSegment(segments[i]);
9131 }
9132
9133 return segments.join('/');
9134}
9135
9136function parseAbsoluteUrl(absoluteUrl, locationObj, appBase) {
9137 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