Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
interface TokensToRegexpOptions
import { type TokensToRegexpOptions } from "https://deno.land/x/frugal@0.3.0/dep/path-to-regexp.ts";

Properties

optional
sensitive: boolean

When true the regexp will be case sensitive. (default: false)

optional
strict: boolean

When true the regexp won't allow an optional trailing delimiter to match. (default: false)

optional
end: boolean

When true the regexp will match to the end of the string. (default: true)

optional
start: boolean

When true the regexp will match from the beginning of the string. (default: true)

optional
delimiter: string

Sets the final character for non-ending optimistic matches. (default: /)

optional
endsWith: string

List of characters that can also be "end" characters.

optional
encode: (value: string) => string

Encode path tokens for use in the RegExp.