MCPcopy Create free account
hub / github.com/codeaashu/claude-code / sanitize

Function sanitize

src/utils/dxt/helpers.ts:71–77  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

69 prefix?: 'local.unpacked' | 'local.dxt',
70): string {
71 const sanitize = (str: string) =>
72 str
73 .toLowerCase()
74 .replace(/\s+/g, '-')
75 .replace(/[^a-z0-9-_.]/g, '')
76 .replace(/-+/g, '-')
77 .replace(/^-+|-+$/g, '')
78
79 const authorName = manifest.author.name
80 const extensionName = manifest.name

Callers 1

generateExtensionIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected