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

x/dtils/deps.ts>asserts.assertNotMatch

The best unofficial library of utilities for Deno applications
Go to Latest
function asserts.assertNotMatch
import { asserts } from "https://deno.land/x/dtils@2.0.0-beta.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