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

x/path_to_regexp/index.ts>MatchOptions

Turn a path string such as `/user/:name` into a regular expression
Go to Latest
interface MatchOptions
import { type MatchOptions } from "https://deno.land/x/path_to_regexp@v8.0.0/index.ts";

Properties

optional
decode: Decode | false

Function for decoding strings for params, or false to disable entirely. (default: decodeURIComponent)

optional
end: boolean

Matches the path completely without trailing characters. (default: true)

optional
trailing: boolean

Allows optional trailing delimiter to match. (default: true)

optional
sensitive: boolean

Match will be case sensitive. (default: false)

optional
delimiter: string

The default delimiter for segments. (default: '/')