MCPcopy
hub / github.com/webpack/webpack / quoteMeta

Function quoteMeta

test/checkArrayExpectation.js:11–11  ·  test/checkArrayExpectation.js::quoteMeta
(str)

Source from the content-addressed store, hash-verified

9 * @returns {string} escaped string
10 */
11const quoteMeta = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, class="st">"\\$&");
12
13/**
14 * Derives the webpack root directory from a test directory path.

Callers 1

normalizeStringFunction · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected