标签: javascript regex
yearId: Yup.string().matches(/^[0-9]{2}-[0-9]{2}$/,"Please enter valid year id") .required("Year id is required")