remove emoji check

This commit is contained in:
smanylov
2025-12-23 12:25:08 +07:00
parent 79ca9ac540
commit 3376fee99a
2 changed files with 4 additions and 4 deletions
+4 -4
View File
@@ -24,10 +24,10 @@ export const SignupFormSchema = z
.string()
.min(2, { error: 'register-error-name' })
.regex(/^[^0-9]*$/, { message: 'register-error-no-digits' })
.refine(
/* .refine(
(value) => !/\p{Emoji}/u.test(value),
{ message: 'no-emoji-allowed' }
)
) */
.trim(),
email: z
.string()
@@ -48,10 +48,10 @@ export const SignupFormSchema = z
.min(8, { error: 'register-error-password-symbols' })
.regex(/[a-zA-Zа-яёА-ЯЁ]/, { error: 'register-error-password-one-letter' })
.regex(/[0-9]/, { error: 'register-error-password-one-digit' })
.refine(
/* .refine(
(value) => !/\p{Emoji}/u.test(value),
{ message: 'no-emoji-allowed' }
)
) */
.trim(),
confirm_password: z
.string(),
View File