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

Function encodePath

lib/test/angular/1.6.7/angular.js:13599–13609  ·  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

13597 * @returns {string}
13598 */
13599function encodePath(path) {
13600 var segments = path.split('/'),
13601 i = segments.length;
13602
13603 while (i--) {
13604 // decode forward slashes to prevent them from being double encoded
13605 segments[i] = encodeUriSegment(segments[i].replace(/%2F/g, '/'));
13606 }
13607
13608 return segments.join('/');
13609}
13610
13611function decodePath(path, html5Mode) {
13612 var segments = path.split('/'),

Callers 3

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 1

encodeUriSegmentFunction · 0.70

Tested by

no test coverage detected