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

Function escapeRegExp

src/renderer/composables/useSnippets.ts:63–65  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

61const searchSelectedIndex = ref<number>(-1)
62
63function escapeRegExp(value: string): string {
64 return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
65}
66
67function getNextIndexedName(baseName: string, existingNames: string[]): string {
68 const normalizedBase = baseName.trim()

Callers 1

getNextIndexedNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected