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

Function stripBaseUrl

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

13666 * the expected string.
13667 */
13668function stripBaseUrl(base, url) {
13669 if (startsWith(url, base)) {
13670 return url.substr(base.length);
13671 }
13672}
13673
13674
13675function stripHash(url) {

Callers 3

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 1

startsWithFunction · 0.70

Tested by

no test coverage detected