MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / stripHash

Function stripHash

web/static/bower_components/angular/angular.js:11400–11403  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

11398
11399
11400function stripHash(url) {
11401 var index = url.indexOf('#');
11402 return index == -1 ? url : url.substr(0, index);
11403}
11404
11405function trimEmptyHash(url) {
11406 return url.replace(/(#.+)|#$/, '$1');

Callers 5

BrowserFunction · 0.85
stripFileFunction · 0.85
LocationHashbangUrlFunction · 0.85
$LocationProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected