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

x/fsrouter/deps.ts>asserts.assertNotMatch

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

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

Parameters

actual: string
expected: RegExp
optional
msg: string