mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 06:34:15 +00:00
refactor: cleanup - schema edition
whole bunch of refactors (especially with schemas)
This commit is contained in:
parent
626016d689
commit
2e4611520d
7 changed files with 40 additions and 36 deletions
|
|
@ -2,6 +2,7 @@ import { z } from "zod";
|
|||
|
||||
export const nameSchema = z
|
||||
.string()
|
||||
.trim()
|
||||
.min(2, { message: "Name must be at least 2 characters long" })
|
||||
.max(64, { message: "Name cannot be more than 64 characters long" })
|
||||
.regex(/^[a-zA-Z0-9-_. ']+$/, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue