📅  最后修改于: 2022-03-11 14:56:50.895000             🧑  作者: Mango
password: Yup.string()
.required('No password provided.')
.min(8, 'Password is too short - should be 8 chars minimum.')
.matches(/[a-zA-Z]/, 'Password can only contain Latin letters.')