Explorar o código

密码正则表达式修改

chenminghua %!s(int64=2) %!d(string=hai) anos
pai
achega
3a0fc23245
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      exam-06173-vue/src/utils/validate.js

+ 1 - 1
exam-06173-vue/src/utils/validate.js

@@ -104,6 +104,6 @@ export function checkPass(str) {
   if (str == null || str.length < 6) {
     return false
   }
-  const regx = new RegExp("^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[~@#$%^&+=])(?=\\S+$).{8,}$")
+const regx = new RegExp("^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[~@#$%^&+=*/|!])(?=\\S+$).{8,}$")
   return regx.test(str)
 }