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

Function matchUrl

test/angular/1.5/angular.js:18714–18721  ·  view source on GitHub ↗
(matcher, parsedUrl)

Source from the content-addressed store, hash-verified

18712
18713
18714 function matchUrl(matcher, parsedUrl) {
18715 if (matcher === 'self') {
18716 return urlIsSameOrigin(parsedUrl);
18717 } else {
18718 // definitely a regex. See adjustMatchers()
18719 return !!matcher.exec(parsedUrl.href);
18720 }
18721 }
18722
18723 function isResourceUrlAllowedByPolicy(url) {
18724 var parsedUrl = urlResolve(url.toString());

Callers 1

Calls 1

urlIsSameOriginFunction · 0.70

Tested by

no test coverage detected