refactor(FormSchema.tsx): modificando regex birthDate

This commit is contained in:
Ana Carolina Duarte Cavalcante 2023-01-16 07:59:50 -03:00
parent 8c14670ed7
commit 93d0c454b7

View File

@ -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}$/;