mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-13 01:57:38 +08:00
changed the max number of characters to 14
This commit is contained in:
parent
5a4a2c2758
commit
1cfb8bedac
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ 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;
|
||||
if (name.length > 14) return false;
|
||||
return /^[0-9a-zA-Z_.-]+$/.test(name);
|
||||
}
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@ function signUp() {
|
|||
return;
|
||||
} else if (d.data === -2) {
|
||||
showNotification(
|
||||
"Name cannot contain special characters or contain more than 12 characters. Can include _ . and -",
|
||||
"Name cannot contain special characters or contain more than 14 characters. Can include _ . and -",
|
||||
8000
|
||||
);
|
||||
$(".pageLogin .preloader").addClass("hidden");
|
||||
|
|
Loading…
Add table
Reference in a new issue