file upload develop
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(
|
||||
(value) => !/\p{Emoji}/u.test(value),
|
||||
{ message: 'no-emoji-allowed' }
|
||||
) */
|
||||
/* .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(
|
||||
(value) => !/\p{Emoji}/u.test(value),
|
||||
{ message: 'no-emoji-allowed' }
|
||||
) */
|
||||
/* .refine(
|
||||
(value) => !/\p{Emoji}/u.test(value),
|
||||
{ message: 'no-emoji-allowed' }
|
||||
) */
|
||||
.trim(),
|
||||
confirm_password: z
|
||||
.string(),
|
||||
@@ -78,6 +78,8 @@ export const loginFormSchema = z
|
||||
|
||||
export const localDevelopmentUrl = 'http://localhost';
|
||||
|
||||
export type FileExtension = 'jpg' | 'jpeg' | 'png' | 'gif' | 'bmp';
|
||||
|
||||
export const testUserData = {
|
||||
fullName: 'test',
|
||||
email: 'test@mail.com',
|
||||
|
||||
Reference in New Issue
Block a user