diff --git a/backend/src/controllers/ContactController.ts b/backend/src/controllers/ContactController.ts index ce4363f..ec28016 100644 --- a/backend/src/controllers/ContactController.ts +++ b/backend/src/controllers/ContactController.ts @@ -107,7 +107,7 @@ export const store = async (req: Request, res: Response): Promise => { number: Yup.string() .required() .matches(/^\d+$/, "Invalid number format. Only numbers is allowed.") - .matches(/^55\d+$/, "The number must start with 55.") + // .matches(/^55\d+$/, "The number must start with 55.") }); try { @@ -176,7 +176,7 @@ export const update = async ( name: Yup.string(), number: Yup.string() .matches(/^\d+$/,"Invalid number format. Only numbers is allowed.") - .matches(/^55\d+$/, "The number must start with 55.") + // .matches(/^55\d+$/, "The number must start with 55.") }); try {