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

Function escapeRegExp

apps/sim/executor/constants.ts:484–486  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

482}
483
484export function escapeRegExp(value: string): string {
485 return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
486}
487
488/**
489 * Normalizes a name for comparison by converting to lowercase and removing

Callers 2

sanitizeMessageForDocsFunction · 0.90
resolveTagVariablesFunction · 0.90

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected