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

Behnaz/MARK-1286/username-length #7802

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: empty
  • Loading branch information
behnaz-deriv committed Jun 19, 2024
commit 724650cf9b250e023c5c112c063185be72cb02b6
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down Expand Up @@ -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) => {
Expand Down
Loading