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

Function stripHash

lib/test/angular/1.5.0/angular.js:12159–12162  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

12157
12158
12159function stripHash(url) {
12160 var index = url.indexOf('#');
12161 return index == -1 ? url : url.substr(0, index);
12162}
12163
12164function trimEmptyHash(url) {
12165 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