Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
fix: static (#6520)
Browse files Browse the repository at this point in the history
  • Loading branch information
behnaz-deriv authored Jan 12, 2024
1 parent e708de2 commit f7be6b5
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const nameValidation = (input, text, min_digit, max_digit) => {
!validation_is_exceed_number(input, max_digit) ||
!validation_is_lack_number(input, min_digit)
) {
return localize(`_t_You should enter ${min_digit}-${max_digit} characters._t_`)
return localize(`_t_You should enter 2 - 256 characters._t_`)
} else if (
affiliate_validation_regex.latin.test(input) ||
affiliate_validation_regex.name.test(input)
Expand All @@ -55,7 +55,7 @@ const nameValidation = (input, text, min_digit, max_digit) => {
}
}
const companyNameValidation = (input, min_digit, max_digit) => {
const length_error = localize(`_t_You should enter ${min_digit}-${max_digit} characters._t_`)
const length_error = localize(`_t_You should enter 2 - 256 characters._t_`)
if (!input) {
return localize('_t_Company name is required_t_')
} else if (!/^[a-zA-Z0-9 ]+$/.test(input)) {
Expand Down Expand Up @@ -89,7 +89,7 @@ const passwordValidation = (input, min_digit, max_digit) => {
!validation_is_exceed_number(input, max_digit) ||
!validation_is_lack_number(input, min_digit)
) {
return localize(`_t_You should enter ${min_digit}-${max_digit} characters._t_`)
return localize(`_t_You should enter 2 - 256 characters._t_`)
} else if (!affiliate_validation_regex.password.test(input)) {
return localize(
`_t_Password should have lower and uppercase English letters with numbers._t_`,
Expand All @@ -105,7 +105,7 @@ const postcodeValidation = (input, min_digit, max_digit) => {
!validation_is_exceed_number(input, max_digit) ||
!validation_is_lack_number(input, min_digit)
) {
return localize(`_t_You should enter ${min_digit}-${max_digit} characters._t_`)
return localize(`_t_You should enter 2 - 256 characters._t_`)
} else if (!affiliate_validation_regex.postal_code.test(input)) {
return localize(`_t_Please enter a valid postcode with Latin characters._t_`)
} else if (!affiliate_validation_regex.non_empty_string.test(input)) {
Expand All @@ -131,7 +131,7 @@ const streetValidation = (input, text, min_digit, max_digit) => {
!validation_is_exceed_number(input, max_digit) ||
!validation_is_lack_number(input, min_digit)
) {
return localize(`_t_You should enter ${min_digit}-${max_digit} characters._t_`)
return localize(`_t_You should enter 2 - 256 characters._t_`)
} else if (!affiliate_validation_regex.address.test(input)) {
return localize('_t_Please enter a valid street_t_')
} else if (!affiliate_validation_regex.non_empty_string.test(input)) {
Expand All @@ -148,7 +148,7 @@ const cityValidation = (input, text, min_digit, max_digit) => {
!validation_is_exceed_number(input, max_digit) ||
!validation_is_lack_number(input, min_digit)
) {
return localize(`_t_You should enter ${min_digit}-${max_digit} characters._t_`)
return localize(`_t_You should enter 2 - 256 characters._t_`)
} else if (!affiliate_validation_regex.city.test(input)) {
return localize('_t_Please enter a valid city_t_')
} else if (!affiliate_validation_regex.non_empty_string.test(input)) {
Expand Down

1 comment on commit f7be6b5

@vercel
Copy link

@vercel vercel bot commented on f7be6b5 Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-com – ./

deriv-com-git-master.binary.sx
deriv-com.binary.sx

Please sign in to comment.