(slug: string)
| 58 | |
| 59 | /** Return a user-facing validation error, or undefined for a valid slug. */ |
| 60 | export function validateSlug(slug: string): string | undefined { |
| 61 | const result = slugSchema.safeParse(slug); |
| 62 | if (result.success) return undefined; |
| 63 | return result.error.issues[0]?.message; |
| 64 | } |
| 65 | |
| 66 | // Mixed-theme word lists: nature/poetic, neutral, and tech |
| 67 | // All words kept short (<=10 chars) to stay well within the 63-char slug limit. |
no outgoing calls
no test coverage detected