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

Function isValidName

src/utils/argumentSubstitution.ts:58–59  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

56
57 // Filter out empty strings and numeric-only names (which conflict with $0, $1 shorthand)
58 const isValidName = (name: string): boolean =>
59 typeof name === 'string' && name.trim() !== '' && !/^\d+$/.test(name)
60
61 if (Array.isArray(argumentNames)) {
62 return argumentNames.filter(isValidName)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected