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

Function stripHash

test/angular/1.5/angular.js:13103–13106  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

13101
13102
13103function stripHash(url) {
13104 var index = url.indexOf('#');
13105 return index === -1 ? url : url.substr(0, index);
13106}
13107
13108function trimEmptyHash(url) {
13109 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