This commit is contained in:
yaoyanwei
2025-08-26 14:28:54 +08:00
parent 4b2bb35c20
commit 6fa45b8f74
4 changed files with 121 additions and 42 deletions

View File

@@ -18,7 +18,7 @@ Validator.validateUsername = function(username){
return false;
//Cant have some special characters, must be letters or digits and start with a letter
var regex = /^[a-zA-Z][a-zA-Z\d]+$/;
var regex = /^[a-zA-Z0-9_]+$/;
if(!regex.test(username))
return false;