yxw 2023-12-01 15:36:23 +08:00
parent 570d8ad769
commit 699c8e3034
2 changed files with 2 additions and 2 deletions

View File

@ -238,7 +238,7 @@
}
function isHostname(name){
var reg=/^(?![0-9]+$)[0-9A-Za-z]{4,16}$/;
var reg=/^[A-Za-z0-9]+$/;
return reg.test(name)
}
</script>

View File

@ -166,7 +166,7 @@
})
function isPassword(name){
var reg=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}$/;
var reg=/^[A-Za-z0-9]+$/;
return reg.test(name)
}
</script>