MCPcopy Index your code
hub / github.com/codeaashu/claude-code / sanitizeAppNames

Function sanitizeAppNames

src/utils/computerUse/appNames.ts:150–157  ·  view source on GitHub ↗
(raw: readonly string[])

Source from the content-addressed store, hash-verified

148}
149
150function sanitizeAppNames(raw: readonly string[]): string[] {
151 const filtered = sanitizeCore(raw, true)
152 if (filtered.length <= APP_NAME_MAX_COUNT) return filtered
153 return [
154 ...filtered.slice(0, APP_NAME_MAX_COUNT),
155 `… and ${filtered.length - APP_NAME_MAX_COUNT} more`,
156 ]
157}
158
159function sanitizeTrustedNames(raw: readonly string[]): string[] {
160 return sanitizeCore(raw, false)

Callers 1

filterAppsForDescriptionFunction · 0.85

Calls 1

sanitizeCoreFunction · 0.85

Tested by

no test coverage detected