mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-09 21:06:37 +08:00
more invalid usernames
This commit is contained in:
parent
6cd4723df1
commit
676fa27891
1 changed files with 1 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ function getAllUsers() {
|
|||
function isUsernameValid(name) {
|
||||
if (name === null || name === undefined || name === "") return false;
|
||||
if (/miodec/.test(name.toLowerCase())) return false;
|
||||
if (/bitly/.test(name.toLowerCase())) return false;
|
||||
if (name.length > 12) return false;
|
||||
return /^[0-9a-zA-Z_.-]+$/.test(name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue