undate full-name validation for register

This commit is contained in:
smanylov
2025-12-17 15:43:13 +07:00
parent 61cd288359
commit fd59fb3e5e
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -23,6 +23,7 @@ export const SignupFormSchema = z
full_name: z
.string()
.min(3, { error: 'register-error-name' })
.regex(/^[^0-9]*$/, { message: 'register-error-no-digits' })
.trim(),
email: z
.string()