MCPcopy
hub / github.com/angular-ui/ui-router / stripFile

Function stripFile

test/angular/1.7/angular.js:14474–14476  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

14472}
14473
14474function stripFile(url) {
14475 return url.substr(0, stripHash(url).lastIndexOf('/') + 1);
14476}
14477
14478/* return the server only (scheme://host:port) */
14479function serverBase(url) {

Callers 1

$LocationProviderFunction · 0.70

Calls 1

stripHashFunction · 0.70

Tested by

no test coverage detected