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

Function parseAbsoluteUrl

test/angular/1.7/angular.js:14421–14427  ·  view source on GitHub ↗
(absoluteUrl, locationObj)

Source from the content-addressed store, hash-verified

14419}
14420
14421function parseAbsoluteUrl(absoluteUrl, locationObj) {
14422 var parsedUrl = urlResolve(absoluteUrl);
14423
14424 locationObj.$$protocol = parsedUrl.protocol;
14425 locationObj.$$host = parsedUrl.hostname;
14426 locationObj.$$port = toInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;
14427}
14428
14429var DOUBLE_SLASH_REGEX = /^\s*[\\/]{2,}/;
14430function 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