MCPcopy Index your code
hub / github.com/simstudioai/sim / escapeRegExp

Function escapeRegExp

apps/sim/lib/logs/log-views.ts:193–195  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

191}
192
193function escapeRegExp(input: string): string {
194 return input.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
195}
196
197function buildRegex(pattern: string): RegExp {
198 try {

Callers 1

buildRegexFunction · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected