优化
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user