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

Function stripHash

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

Source from the content-addressed store, hash-verified

10630
10631
10632function stripHash(url) {
10633 var index = url.indexOf('#');
10634 return index == -1 ? url : url.substr(0, index);
10635}
10636
10637function trimEmptyHash(url) {
10638 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