📅  最后修改于: 2022-03-11 15:03:19.754000             🧑  作者: Mango
yup.string()
.required("Please enter the required field")
.matches(/^[aA-zZ\s]+$/, "Only alphabets are allowed for this field ")