Skip to content

Commit

Permalink
Merge pull request #72 from suisin-deriv/suisin/change_phone_number_r…
Browse files Browse the repository at this point in the history
…egex

chore: update validation.constants.ts
  • Loading branch information
shayan-deriv authored Sep 5, 2024
2 parents e9951b8 + e55e6c4 commit 8d1243c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/constants/validation.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ export const patterns = {
**/
taxIdentificationNumber: /^(?!^$|\s+)[A-Za-z0-9.\/\s-]{0,25}$/,
/**
* @regex /^\+((-|\s)*[0-9]){9,35}$/
* @description This pattern matches any string that starts with a '+' character, followed by 9-35 digits, allowing hyphens or spaces.
* @regex /^\+((-|\s)*[0-9]){9,20}$/
* @description This pattern matches any string that starts with a '+' character, followed by 9-20 digits, allowing hyphens or spaces.
* @example ValidationConstants.patterns.phoneNumber.test("+1234567890")
**/
phoneNumber: /^\+((-|\s)*[0-9]){9,35}$/,
phoneNumber: /^\+((-|\s)*[0-9]){9,20}$/,
/**
* @regex /(image|application)\/(jpe?g|pdf|png)$/
* @description This pattern matches any of the file types jpeg, jpg, pdf, or png.
Expand Down

0 comments on commit 8d1243c

Please sign in to comment.