MCPcopy Create free account
hub / github.com/massCodeIO/massCode / escapeRegExp

Function escapeRegExp

src/main/api/routes/captures.ts:111–113  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

109}
110
111function escapeRegExp(value: string): string {
112 return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
113}
114
115function getNextIndexedName(baseName: string, existingNames: string[]): string {
116 const normalizedBase = baseName.trim()

Callers 1

getNextIndexedNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected