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

Function stripFile

test/angular/1.3/angular.js:10642–10644  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

10640
10641
10642function stripFile(url) {
10643 return url.substr(0, stripHash(url).lastIndexOf('/') + 1);
10644}
10645
10646/* return the server only (scheme://host:port) */
10647function serverBase(url) {

Callers 1

$LocationProviderFunction · 0.70

Calls 1

stripHashFunction · 0.70

Tested by

no test coverage detected