import { URLPatternCompat } from "https://deno.land/x/aleph@1.0.0-beta.23/runtime/core/url_pattern.ts";
A class uses the URLPattern
class to parse and match URLs if the browser supports it,
or fallback to use the execPathname
function.
Constructors
new
URLPatternCompat(pattern: URLPatternInput)Methods
exec(input: { host: string; pathname: string; }): URLPatternResult | null
test(input: { host: string; pathname: string; }): boolean
Static Methods
execPathname(patternPathname: string, pathname: string): null | Pick<URLPatternResult, "pathname">