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

Function matchUrl

test/angular/1.3/angular.js:15254–15261  ·  view source on GitHub ↗
(matcher, parsedUrl)

Source from the content-addressed store, hash-verified

15252
15253
15254 function matchUrl(matcher, parsedUrl) {
15255 if (matcher === 'self') {
15256 return urlIsSameOrigin(parsedUrl);
15257 } else {
15258 // definitely a regex. See adjustMatchers()
15259 return !!matcher.exec(parsedUrl.href);
15260 }
15261 }
15262
15263 function isResourceUrlAllowedByPolicy(url) {
15264 var parsedUrl = urlResolve(url.toString());

Callers 1

Calls 1

urlIsSameOriginFunction · 0.70

Tested by

no test coverage detected