Skip to main content
Module

x/mtkruto/deps.ts>assertMatch

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
function assertMatch
import { assertMatch } from "https://deno.land/x/mtkruto@0.0.988/deps.ts";

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

Parameters

actual: string
expected: RegExp
optional
msg: string