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

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

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

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

Parameters

actual: string
expected: RegExp
optional
msg: string