(name: string)
| 40 | * @returns true if valid, false otherwise |
| 41 | */ |
| 42 | export function isValidSkillName(name: string): boolean { |
| 43 | if (!name || name.length > SKILL_NAME_MAX_LENGTH) { |
| 44 | return false |
| 45 | } |
| 46 | return SKILL_NAME_REGEX.test(name) |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Validates a skill description according to length rules. |
no outgoing calls
no test coverage detected