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

Function escapeRegExp

src/renderer/composables/spaces/notes/useNotes.ts:288–290  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

286// --- Utility ---
287
288function escapeRegExp(value: string): string {
289 return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
290}
291
292function getNextIndexedName(baseName: string, existingNames: string[]): string {
293 const normalizedBase = baseName.trim()

Callers 1

getNextIndexedNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected