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

Function matchUrl

test/angular/1.4/angular.js:17094–17101  ·  view source on GitHub ↗
(matcher, parsedUrl)

Source from the content-addressed store, hash-verified

17092
17093
17094 function matchUrl(matcher, parsedUrl) {
17095 if (matcher === 'self') {
17096 return urlIsSameOrigin(parsedUrl);
17097 } else {
17098 // definitely a regex. See adjustMatchers()
17099 return !!matcher.exec(parsedUrl.href);
17100 }
17101 }
17102
17103 function isResourceUrlAllowedByPolicy(url) {
17104 var parsedUrl = urlResolve(url.toString());

Callers 1

Calls 1

urlIsSameOriginFunction · 0.70

Tested by

no test coverage detected