MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / encodePath

Function encodePath

lib/test/angular/1.7.0/angular.js:13803–13813  ·  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

13801 * @returns {string}
13802 */
13803function encodePath(path) {
13804 var segments = path.split('/'),
13805 i = segments.length;
13806
13807 while (i--) {
13808 // decode forward slashes to prevent them from being double encoded
13809 segments[i] = encodeUriSegment(segments[i].replace(/%2F/g, '/'));
13810 }
13811
13812 return segments.join('/');
13813}
13814
13815function decodePath(path, html5Mode) {
13816 var segments = path.split('/'),

Callers 3

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 1

encodeUriSegmentFunction · 0.70

Tested by

no test coverage detected