Skip to main content
Module

x/aleph/runtime/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-beta.1/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)

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