MCPcopy Index your code
hub / github.com/angular-ui/ui-router / stripBaseUrl

Function stripBaseUrl

test/angular/1.7/angular.js:14463–14467  ·  view source on GitHub ↗

* * @param {string} base * @param {string} url * @returns {string} returns text from `url` after `base` or `undefined` if it does not begin with * the expected string.

(base, url)

Source from the content-addressed store, hash-verified

14461 * the expected string.
14462 */
14463function stripBaseUrl(base, url) {
14464 if (startsWith(url, base)) {
14465 return url.substr(base.length);
14466 }
14467}
14468
14469function stripHash(url) {
14470 var index = url.indexOf('#');

Callers 3

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 1

startsWithFunction · 0.70

Tested by

no test coverage detected