mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-11-04 08:05:35 +01:00
feat: improve reconnect, add ESLint configuration for common and socket
This commit is contained in:
1 parent
8bdb8f47ef
commit
96bff164c0
36 files changed
+1571
-677
No files matched your search
@@ -0,0 +1,8 @@
|
||||
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")
|
||||
Reference in new issue
Block a user