From c03d123182c38aaa158914d0fb9277fa9b7c2175 Mon Sep 17 00:00:00 2001 From: "m.usman" Date: Thu, 10 Oct 2024 19:34:44 +0200 Subject: [PATCH] chore: updated regex for phone number --- src/types/Patterns.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/Patterns.ts b/src/types/Patterns.ts index c5003fbe1..3585dac6f 100644 --- a/src/types/Patterns.ts +++ b/src/types/Patterns.ts @@ -44,7 +44,7 @@ export const Patterns = { LABEL: /^[a-z0-9-_ ]{1,80}$/i, BPN: /^BPNL[0-9A-Z]{12}$/i, MAIL: /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*))@(([a-z0-9-]+\.)+[a-z]{2,})$/, - PHONE: /^(\+|00)?(?:[0-9] ?){6,14}[0-9]$/, + PHONE: /^(\+|00)?(?:\d\s?){6,14}\d$/, DOMAIN: new RegExp(`^${DOMAIN.source}$`, 'i'), PATH: new RegExp(`^${URLPATH.source}$`, 'i'), URL: urlPattern,