MCPcopy Create free account
hub / github.com/cloudflare/agents / escapeRegExp

Function escapeRegExp

packages/shell/src/helpers.ts:472–474  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

470}
471
472function escapeRegExp(value: string): string {
473 return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
474}
475
476function unifiedDiff(
477 before: string,

Callers 1

createTextMatcherFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected