Skip to main content
Module

x/pagic/deps.ts>asserts.assertMatch

A static site generator powered by Deno + React
Go to Latest
function asserts.assertMatch
import { asserts } from "https://deno.land/x/pagic@v1.5.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