diff --git a/src/constants/validation.constants.ts b/src/constants/validation.constants.ts index 8a747af..ab06be3 100644 --- a/src/constants/validation.constants.ts +++ b/src/constants/validation.constants.ts @@ -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.