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

x/html_parser/src/deps.ts>assertions.assertNotMatch

Port of fb55/htmlparser2 for Deno
Latest
function assertions.assertNotMatch
import { assertions } from "https://deno.land/x/html_parser@v0.1.3/src/deps.ts";
const { assertNotMatch } = assertions;

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

Parameters

actual: string
expected: RegExp
optional
msg: string