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

Function parseAbsoluteUrl

test/angular/1.5/angular.js:13054–13060  ·  view source on GitHub ↗
(absoluteUrl, locationObj)

Source from the content-addressed store, hash-verified

13052}
13053
13054function parseAbsoluteUrl(absoluteUrl, locationObj) {
13055 var parsedUrl = urlResolve(absoluteUrl);
13056
13057 locationObj.$$protocol = parsedUrl.protocol;
13058 locationObj.$$host = parsedUrl.hostname;
13059 locationObj.$$port = toInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;
13060}
13061
13062var DOUBLE_SLASH_REGEX = /^\s*[\\/]{2,}/;
13063function parseAppUrl(url, locationObj) {

Callers 2

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 2

urlResolveFunction · 0.70
toIntFunction · 0.70

Tested by

no test coverage detected