MCPcopy
hub / github.com/angular-ui/ui-router / getHash

Function getHash

test/angular/1.7/angular.js:6508–6511  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

6506/* global getHash: true, stripHash: false */
6507
6508function getHash(url) {
6509 var index = url.indexOf('#');
6510 return index === -1 ? '' : url.substr(index);
6511}
6512
6513function trimEmptyHash(url) {
6514 return url.replace(/#$/, '');

Callers 1

BrowserFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected