Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

The Full-stack Framework in Deno.
Go to Latest
class URLPatternCompat
import { URLPatternCompat } from "https://deno.land/x/aleph@1.0.0-alpha.65/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">