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

x/fsrouter/deps.ts>asserts.assertMatch

A file system based router for Deno.
Go to Latest
function asserts.assertMatch
import { asserts } from "https://deno.land/x/fsrouter@2.11.1/deps.ts";
const { assertMatch } = asserts;

Make an assertion that actual match RegExp expected. If not then throw.

Parameters

actual: string
expected: RegExp
optional
msg: string