MCPcopy
hub / github.com/webpack/webpack / escapeRegExp

Function escapeRegExp

test/configCases/node/output-module-external/import.js:1–1  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2
3it("should load node builtins via dynamic import", async () => {
4 const load = async (modulePromise) => {

Callers 1

import.jsFile · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected