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

Function escapeRegExp

src/renderer/composables/useFolders.ts:21–23  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

19const lastSelectedFolderId = ref<number | undefined>(state.folderId)
20
21function escapeRegExp(value: string): string {
22 return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
23}
24
25function getNextIndexedName(baseName: string, existingNames: string[]): string {
26 const normalizedBase = baseName.trim()

Callers 1

getNextIndexedNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected