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

Function stripHash

lib/test/angular/1.4.3/angular.js:11261–11264  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

11259
11260
11261function stripHash(url) {
11262 var index = url.indexOf('#');
11263 return index == -1 ? url : url.substr(0, index);
11264}
11265
11266function trimEmptyHash(url) {
11267 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