MCPcopy Create free account
hub / github.com/apache/cloudstack / encodePath

Function encodePath

tools/ngui/static/js/lib/angular.js:5044–5053  ·  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

5042 * @returns {string}
5043 */
5044function encodePath(path) {
5045 var segments = path.split('/'),
5046 i = segments.length;
5047
5048 while (i--) {
5049 segments[i] = encodeUriSegment(segments[i]);
5050 }
5051
5052 return segments.join('/');
5053}
5054
5055function stripHash(url) {
5056 return url.split('#')[0];

Callers 2

LocationUrlFunction · 0.85
LocationHashbangUrlFunction · 0.85

Calls 2

encodeUriSegmentFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected