Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/alephjs/framework/core/url_pattern.ts>URLPatternCompat

The Full-stack Framework in Deno.
Go to Latest
class URLPatternCompat
import { URLPatternCompat } from "https://deno.land/x/alephjs@1.0.0-alpha.68.6/framework/core/url_pattern.ts";

A class uses the URLPattern class to parse and match URLs if the browser supports it, or fall back to use the execPathname function.

Constructors

new
URLPatternCompat(pattern: URLPatternInput)

Properties

pattern: Record<string, unknown>

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">