Skip to content

UrlPattern

UrlPattern = string | RegExp

Defined in: web/url-pattern.ts:7

The matcher behind AddressPolicy.allowedUrls: a small, deliberately narrow pattern language, not a general-purpose glob engine — see README.md for why. A glob string (literal text, * for one path segment, ** for anything including /) or a RegExp, both matched against urlMatchCandidate, never the raw URL.