MCPcopy Index your code
hub / github.com/simstudioai/sim / isValidName

Function isValidName

apps/sim/lib/core/utils/validation.ts:40–42  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

38 * @returns True if the name is valid, false otherwise
39 */
40export function isValidName(name: string): boolean {
41 return /^[a-zA-Z0-9_\s]*$/.test(name)
42}
43
44/**
45 * Gets a list of invalid characters in a name

Callers 1

utils.test.tsFile · 0.90

Calls 1

testMethod · 0.80

Tested by

no test coverage detected