forked from M3-Academy/desafio-react-e-typescript
refactor(FormSchema.tsx): modificando regex birthDate
This commit is contained in:
parent
8c14670ed7
commit
93d0c454b7
@ -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}$/;
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user