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

Function quoteMeta

test/Defaults.unittest.js:18–18  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

16 * @returns {string} Escaped string
17 */
18const quoteMeta = (str) => str.replace(/[-[\]\\/{}()*+?.^$|]/g, "\\$&");
19
20const cwd = process.cwd();
21const cwdRegExp = new RegExp(

Callers 2

normalizeFunction · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected