MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / stripHash

Function stripHash

code/songhop/www/lib/angular/angular.js:10513–10516  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

10511
10512
10513function stripHash(url) {
10514 var index = url.indexOf('#');
10515 return index == -1 ? url : url.substr(0, index);
10516}
10517
10518function trimEmptyHash(url) {
10519 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