From f0e607c475468e901acea4ca27e0af1957c18ba4 Mon Sep 17 00:00:00 2001 From: adriano Date: Tue, 3 Oct 2023 10:37:10 -0300 Subject: [PATCH] =?UTF-8?q?remo=C3=A7=C3=A3o=20da=20obrigatoriedade=20do?= =?UTF-8?q?=2055=20no=20inimcio=20do=20numero=20de=20telefone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/controllers/ContactController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {