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

Function stripHash

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

Source from the content-addressed store, hash-verified

14467}
14468
14469function stripHash(url) {
14470 var index = url.indexOf('#');
14471 return index === -1 ? url : url.substr(0, index);
14472}
14473
14474function stripFile(url) {
14475 return url.substr(0, stripHash(url).lastIndexOf('/') + 1);

Callers 5

BrowserFunction · 0.70
stripFileFunction · 0.70
LocationHashbangUrlFunction · 0.70
$LocationProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected