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

Function sanitizeName

src/utils/swarm/teamHelpers.ts:100–102  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

98 * Replaces all non-alphanumeric characters with hyphens and lowercases.
99 */
100export function sanitizeName(name: string): string {
101 return name.replace(/[^a-zA-Z0-9]/g, '-').toLowerCase()
102}
103
104/**
105 * Sanitizes an agent name for use in deterministic agent IDs.

Callers 2

getTeamDirFunction · 0.70
cleanupTeamDirectoriesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected