From 724650cf9b250e023c5c112c063185be72cb02b6 Mon Sep 17 00:00:00 2001 From: behnaz-deriv Date: Wed, 19 Jun 2024 14:45:57 +0800 Subject: [PATCH] chore: empty --- .../signup-affiliates/validations/_affilaite_validation.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/gatsby-theme-deriv/src/pages/signup-affiliates/validations/_affilaite_validation.tsx b/themes/gatsby-theme-deriv/src/pages/signup-affiliates/validations/_affilaite_validation.tsx index 4f879b71c47..334b3c40d2e 100644 --- a/themes/gatsby-theme-deriv/src/pages/signup-affiliates/validations/_affilaite_validation.tsx +++ b/themes/gatsby-theme-deriv/src/pages/signup-affiliates/validations/_affilaite_validation.tsx @@ -9,7 +9,7 @@ export const affiliate_validation_regex = { value.trim().length >= 2 && value.trim().length <= 50, phone: (value: string) => /^\+?\d+$/.test(value), - username: (value: string) => /^[A-Za-z0-9_]{3,20}$/.test(value), + username: (value: string) => /^[A-Za-z0-9_]{3,30}$/.test(value), password: (value: string) => /^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?!.*\W)(?!.* ).{8,50}$/.test(value), city: (value: string) => @@ -38,9 +38,9 @@ const userNameValidation = (input: string) => { !affiliate_validation_regex.username(input) || !affiliate_validation_regex.non_empty_string(input) || input.length < 2 || - input.length > 20 + input.length > 30 ) { - return localize('_t_Please enter 3-20 Latin characters, numbers._t_') + return localize('_t_Please enter 3-30 Latin characters, numbers._t_') } } const nameValidation = (input: string, text: string) => {