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

Function stripHash

lib/test/angular/1.7.0/angular.js:13879–13882  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

13877
13878
13879function stripHash(url) {
13880 var index = url.indexOf('#');
13881 return index === -1 ? url : url.substr(0, index);
13882}
13883
13884function trimEmptyHash(url) {
13885 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