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

Function quoteMeta

test/StatsTestCases.basictest.js:20–20  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

18 * @returns {string} Escaped string
19 */
20const quoteMeta = (str) => str.replace(/[-[\]\\/{}()*+?.^$|]/g, "\\$&");
21
22const base = path.join(__dirname, "statsCases");
23const outputBase = path.join(__dirname, "js", "stats");

Callers 1

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected