MCPcopy Create free account
hub / github.com/apache/cloudstack / matchUrl

Function matchUrl

tools/ngui/static/js/lib/angular.js:5060–5079  ·  view source on GitHub ↗
(url, obj)

Source from the content-addressed store, hash-verified

5058
5059
5060function matchUrl(url, obj) {
5061 var match = URL_MATCH.exec(url);
5062
5063 match = {
5064 protocol: match[1],
5065 host: match[3],
5066 port: int(match[5]) || DEFAULT_PORTS[match[1]] || null,
5067 path: match[6] || '/',
5068 search: match[8],
5069 hash: match[10]
5070 };
5071
5072 if (obj) {
5073 obj.$$protocol = match.protocol;
5074 obj.$$host = match.host;
5075 obj.$$port = match.port;
5076 }
5077
5078 return match;
5079}
5080
5081
5082function composeProtocolHostPort(protocol, host, port) {

Callers 5

convertToHtml5UrlFunction · 0.85
convertToHashbangUrlFunction · 0.85
LocationUrlFunction · 0.85
LocationHashbangUrlFunction · 0.85
$LocationProviderFunction · 0.85

Calls 1

intFunction · 0.85

Tested by

no test coverage detected