MCPcopy Index your code
hub / github.com/angular-ui/ui-router / stripHash

Function stripHash

test/angular/1.2/angular.js:9317–9320  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

9315
9316
9317function stripHash(url) {
9318 var index = url.indexOf('#');
9319 return index == -1 ? url : url.substr(0, index);
9320}
9321
9322function trimEmptyHash(url) {
9323 return url.replace(/(#.+)|#$/, '$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