📌  相关文章
📜  用数字字符串和大写字母反应 yup 密码 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:17.961000             🧑  作者: Mango

代码示例1
password: yup
    .string()
    .required('Please Enter your password')
    .matches(
      /^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$/,
      "Must Contain 8 Characters, One Uppercase, One Lowercase, One Number and one special case Character"
    ),