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

Function stripHash

lib/test/angular/1.8.0/angular.js:14534–14537  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

14532}
14533
14534function stripHash(url) {
14535 var index = url.indexOf('#');
14536 return index === -1 ? url : url.substr(0, index);
14537}
14538
14539function stripFile(url) {
14540 return url.substr(0, stripHash(url).lastIndexOf('/') + 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