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

Function stripHash

lib/test/angular/1.6.7/angular.js:13675–13678  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

13673
13674
13675function stripHash(url) {
13676 var index = url.indexOf('#');
13677 return index === -1 ? url : url.substr(0, index);
13678}
13679
13680function trimEmptyHash(url) {
13681 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