MCPcopy
hub / github.com/angular-ui/ui-grid / decodePath

Function decodePath

lib/test/angular/1.8.0/angular.js:14463–14476  ·  view source on GitHub ↗
(path, html5Mode)

Source from the content-addressed store, hash-verified

14461}
14462
14463function decodePath(path, html5Mode) {
14464 var segments = path.split('/'),
14465 i = segments.length;
14466
14467 while (i--) {
14468 segments[i] = decodeURIComponent(segments[i]);
14469 if (html5Mode) {
14470 // encode forward slashes to prevent them from being mistaken for path separators
14471 segments[i] = segments[i].replace(/\//g, '%2F');
14472 }
14473 }
14474
14475 return segments.join('/');
14476}
14477
14478function normalizePath(pathValue, searchValue, hashValue) {
14479 var search = toKeyValue(searchValue),

Callers 1

parseAppUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected