mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-13 20:15:35 +01:00
9 lines
254 B
TypeScript
9 lines
254 B
TypeScript
import z from "zod"
|
|
|
|
export const usernameValidator = z
|
|
.string()
|
|
.min(4, "Username cannot be less than 4 characters")
|
|
.max(20, "Username cannot exceed 20 characters")
|
|
|
|
export const inviteCodeValidator = z.string().length(6, "Invalid invite code")
|