mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-10 15:54:49 +08:00
fixed could not save result error
This commit is contained in:
parent
02b5396637
commit
0aebaeaf70
2 changed files with 2 additions and 2 deletions
|
@ -944,7 +944,7 @@ exports.testCompleted = functions.https.onRequest(async (request, response) => {
|
|||
errCount += verifyValue(val[valkey]);
|
||||
});
|
||||
} else {
|
||||
if (!/^[0-9a-zA-Z._]+$/.test(val)) errCount++;
|
||||
if (!/^[0-9a-zA-Z._-]+$/.test(val)) errCount++;
|
||||
}
|
||||
return errCount;
|
||||
}
|
||||
|
|
|
@ -2022,7 +2022,7 @@ function showResult(difficultyFailed = false) {
|
|||
lang = "english";
|
||||
}
|
||||
|
||||
let quoteLength = null;
|
||||
let quoteLength = -1;
|
||||
if (config.mode === "quote") {
|
||||
quoteLength = randomQuote.group;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue