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

x/clippy/deps.ts>assertMatch

cross-platform Deno module for writing and reading clipboard.
Go to Latest
function assertMatch
import { assertMatch } from "https://deno.land/x/clippy@v0.2.1/deps.ts";

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

Parameters

actual: string
expected: RegExp
optional
msg: string