(raw: unknown)
| 16 | * simply omitted rather than carrying garbage). |
| 17 | */ |
| 18 | export function normalizeSkillSlug(raw: unknown): string | undefined { |
| 19 | if (typeof raw !== "string") return undefined; |
| 20 | const slug = raw.trim(); |
| 21 | return SKILL_SLUG.test(slug) ? slug : undefined; |
| 22 | } |
no outgoing calls
no test coverage detected