MCPcopy Index your code
hub / github.com/angular-ui/ui-router / parseAbsoluteUrl

Function parseAbsoluteUrl

test/angular/1.6/angular.js:13793–13799  ·  view source on GitHub ↗
(absoluteUrl, locationObj)

Source from the content-addressed store, hash-verified

13791}
13792
13793function parseAbsoluteUrl(absoluteUrl, locationObj) {
13794 var parsedUrl = urlResolve(absoluteUrl);
13795
13796 locationObj.$$protocol = parsedUrl.protocol;
13797 locationObj.$$host = parsedUrl.hostname;
13798 locationObj.$$port = toInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;
13799}
13800
13801var DOUBLE_SLASH_REGEX = /^\s*[\\/]{2,}/;
13802function parseAppUrl(url, locationObj, html5Mode) {

Callers 2

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 2

urlResolveFunction · 0.70
toIntFunction · 0.70

Tested by

no test coverage detected