mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-23 06:18:31 +00:00
fix: support houseNumbers with '/'
This commit is contained in:
parent
ceee180fb3
commit
6b7abb5eed
1 changed files with 4 additions and 1 deletions
|
|
@ -89,7 +89,10 @@
|
|||
sex: yup.string(),
|
||||
address: yup.string(),
|
||||
street: yup.string().required(),
|
||||
houseNumber: yup.number().required(),
|
||||
houseNumber: yup
|
||||
.string()
|
||||
.required()
|
||||
.matches(/^[0-9]+(\/[0-9]+)?$/),
|
||||
city: yup.string().required(),
|
||||
zip: yup.string().required(),
|
||||
citizenship: yup.string().required(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue