mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-26 21:41:50 +00:00
feat: birthdate regex
This commit is contained in:
parent
05387691e3
commit
a5331adfca
1 changed files with 4 additions and 1 deletions
|
|
@ -58,7 +58,10 @@
|
||||||
.required()
|
.required()
|
||||||
.matches(/^\+\d{1,3} \d{3} \d{3} \d{3}$/),
|
.matches(/^\+\d{1,3} \d{3} \d{3} \d{3}$/),
|
||||||
birthplace: yup.string().required(),
|
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(),
|
sex: yup.string(),
|
||||||
address: yup.string().required(),
|
address: yup.string().required(),
|
||||||
citizenship: yup.string().required(),
|
citizenship: yup.string().required(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue