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

Commit

Permalink
chore: remove special char from regex2
Browse files Browse the repository at this point in the history
  • Loading branch information
behnaz-deriv committed Feb 28, 2024
1 parent 68949d0 commit 3a39c42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const affiliate_validation_regex = {
value.length <= 50,
phone: (value: string) => /^\+?\d+$/.test(value),
username: (value: string) => /^[A-Za-z0-9_]{3,20}$/.test(value),
password: (value: string) => /^([a-z])([0-9])([A-Z]){6,50}$/.test(value),
password: (value: string) => /^([a-z])([0-9])([A-Z])[ -~]{6,50}$/.test(value),
city: (value: string) =>
/^[\p{L}][\p{L}\s'.-]{0,49}$/u.test(value) &&
value.trim().length >= 2 &&
Expand Down

0 comments on commit 3a39c42

Please sign in to comment.