deno.land / x / escape_string_regexp@v0.0.1 / test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
import { assert, test, runTests } from "https://deno.land/x/testing/mod.ts";import { escapeStringRegexp } from "https://raw.githubusercontent.com/Sab94/escape-string-regexp/master/mod.ts";
test({name: "escapeStringRegexp", fn: () => { assert.equal(escapeStringRegexp('\\ ^ $ * + ? . ( ) | { } [ ]'), '\\\\ \\^ \\$ \\* \\+ \\? \\. \\( \\) \\| \\{ \\} \\[ \\]');}});
runTests();
escape_string_regexp

Version Info

Tagged at
3 years ago