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

Function encodePath

lib/test/angular/1.8.0/angular.js:14451–14461  ·  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

14449 * @returns {string}
14450 */
14451function encodePath(path) {
14452 var segments = path.split('/'),
14453 i = segments.length;
14454
14455 while (i--) {
14456 // decode forward slashes to prevent them from being double encoded
14457 segments[i] = encodeUriSegment(segments[i].replace(/%2F/g, '/'));
14458 }
14459
14460 return segments.join('/');
14461}
14462
14463function decodePath(path, html5Mode) {
14464 var segments = path.split('/'),

Callers 1

normalizePathFunction · 0.70

Calls 1

encodeUriSegmentFunction · 0.70

Tested by

no test coverage detected