fixed could not save result error

This commit is contained in:
Jack 2020-12-23 20:22:56 +00:00
parent 02b5396637
commit 0aebaeaf70
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -2022,7 +2022,7 @@ function showResult(difficultyFailed = false) {
lang = "english";
}
let quoteLength = null;
let quoteLength = -1;
if (config.mode === "quote") {
quoteLength = randomQuote.group;
}