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

Function stripHash

test/angular/1.6/angular.js:13842–13845  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

13840
13841
13842function stripHash(url) {
13843 var index = url.indexOf('#');
13844 return index === -1 ? url : url.substr(0, index);
13845}
13846
13847function trimEmptyHash(url) {
13848 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