MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / stripHash

Function stripHash

OpenReservation/wwwroot/Scripts/angular.js:12474–12477  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

12472 }
12473
12474 function stripHash(url) {
12475 var index = url.indexOf('#');
12476 return index == -1 ? url : url.substr(0, index);
12477 }
12478
12479 function trimEmptyHash(url) {
12480 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