MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / escapeRegExp

Function escapeRegExp

src/core/tools/EditFileTool.ts:83–85  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

81}
82
83function escapeRegExp(input: string): string {
84 return input.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")
85}
86
87function buildWhitespaceTolerantRegex(oldLF: string): RegExp {
88 if (oldLF === "") {

Callers 1

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected