From 93d0c454b7ca2dfc232fc0799c65dd652a048b35 Mon Sep 17 00:00:00 2001 From: devartes Date: Mon, 16 Jan 2023 07:59:50 -0300 Subject: [PATCH] refactor(FormSchema.tsx): modificando regex birthDate --- src/schema/FormSchema.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schema/FormSchema.tsx b/src/schema/FormSchema.tsx index 8f1f4d0..afea29d 100644 --- a/src/schema/FormSchema.tsx +++ b/src/schema/FormSchema.tsx @@ -10,7 +10,7 @@ const phone = const instagram = /@([A-Za-z0-9_](?:(?:[A-Za-z0-9_]|(?:\.(?!\.))){0,28}(?:[A-Za-z0-9_]))?)/; -const birthDate = /\d{2}.\d{2}.\d{4}/; +const birthDate = /^[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{4}$/;