MCPcopy Create free account
hub / github.com/bclinkinbeard/angular / stripHash

Function stripHash

test/fixtures/foo.js:9209–9212  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

9207
9208
9209function stripHash(url) {
9210 var index = url.indexOf('#');
9211 return index == -1 ? url : url.substr(0, index);
9212}
9213
9214
9215function stripFile(url) {

Callers 4

stripFileFunction · 0.85
LocationHashbangUrlFunction · 0.85
$LocationProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected