remove emoji check
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user