MCPcopy Create free account
hub / github.com/react-static/react-static / escapeRegExp

Function escapeRegExp

packages/react-static/src/utils/index.js:58–60  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

56
57const escapeReg = /[\\^$.*+?()[\]{}|]/g
58export function escapeRegExp(str) {
59 return str.replace(escapeReg, '\\$&')
60}

Callers 3

binHelper.jsFile · 0.85
setIgnorePathFunction · 0.85
chunkBuilder.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…