Skip to main content
variable escapeRegExp
import { escapeRegExp } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Escapes a string to use in a regular expression.

Use String.prototype.replace() to escape special characters.

type

(str: string) => unknown