Hopefully plugged an undefined username hole

This commit is contained in:
2021-04-28 21:00:48 +10:00
parent e141583f91
commit 768352b804
11 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -6,11 +6,11 @@ module.exports = username => {
if (username.length < 8 && username.length > 100) {
return false;
}
if (!isAlpha(username)) {
return false;
}
return true;
}