feat: birthdate regex

This commit is contained in:
Sebastian Pravda 2022-12-06 17:56:23 +01:00
parent 05387691e3
commit a5331adfca
No known key found for this signature in database
GPG key ID: F3BC84F08EFA3F57

View file

@ -58,7 +58,10 @@
.required()
.matches(/^\+\d{1,3} \d{3} \d{3} \d{3}$/),
birthplace: yup.string().required(),
birthdate: yup.string().required(),
birthdate: yup
.string()
.required()
.matches(/^([0-3]?[0-9])\.([1-9]|1[0-2])\.[0-9]{4}$/),
sex: yup.string(),
address: yup.string().required(),
citizenship: yup.string().required(),