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

Function matchUrl

test/angular/1.2/angular.js:13507–13514  ·  view source on GitHub ↗
(matcher, parsedUrl)

Source from the content-addressed store, hash-verified

13505
13506
13507 function matchUrl(matcher, parsedUrl) {
13508 if (matcher === 'self') {
13509 return urlIsSameOrigin(parsedUrl);
13510 } else {
13511 // definitely a regex. See adjustMatchers()
13512 return !!matcher.exec(parsedUrl.href);
13513 }
13514 }
13515
13516 function isResourceUrlAllowedByPolicy(url) {
13517 var parsedUrl = urlResolve(url.toString());

Callers 1

Calls 1

urlIsSameOriginFunction · 0.70

Tested by

no test coverage detected