MCPcopy Index your code
hub / github.com/nodejs/node / testEscape

Function testEscape

deps/v8/test/mjsunit/regexp.js:30–32  ·  view source on GitHub ↗
(str, regex)

Source from the content-addressed store, hash-verified

28// Flags: --allow-natives-syntax
29
30function testEscape(str, regex) {
31 assertEquals("foo:bar:baz", str.split(regex).join(":"));
32}
33
34testEscape("foo\nbar\nbaz", /\n/);
35testEscape("foo bar baz", /\s/);

Callers 1

regexp.jsFile · 0.85

Calls 3

assertEqualsFunction · 0.50
joinMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…