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

Function stripBaseUrl

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

14526 * the expected string.
14527 */
14528function stripBaseUrl(base, url) {
14529 if (startsWith(url, base)) {
14530 return url.substr(base.length);
14531 }
14532}
14533
14534function stripHash(url) {
14535 var index = url.indexOf('#');

Callers 3

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 1

startsWithFunction · 0.70

Tested by

no test coverage detected