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

Function stripHash

test/angular/1.4/angular.js:11731–11734  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

11729
11730
11731function stripHash(url) {
11732 var index = url.indexOf('#');
11733 return index == -1 ? url : url.substr(0, index);
11734}
11735
11736function trimEmptyHash(url) {
11737 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