MCPcopy Create free account
hub / github.com/TanStack/cli / sanitizeId

Function sanitizeId

packages/cli/src/cli.ts:71–78  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

69}
70
71function sanitizeId(value: string) {
72 const normalized = value.trim().toLowerCase()
73 if (!normalized) {
74 return undefined
75 }
76
77 return normalized.replace(/[^a-z0-9._:/-]/g, '-')
78}
79
80function sanitizeIdList(values: Array<string>) {
81 return Array.from(

Callers 5

sanitizeIdListFunction · 0.85
cliFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected