diff --git a/functions/index.js b/functions/index.js index 0bb678af0..988af9222 100644 --- a/functions/index.js +++ b/functions/index.js @@ -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; } diff --git a/src/js/script.js b/src/js/script.js index 33363e7d3..04fc36dd8 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -2022,7 +2022,7 @@ function showResult(difficultyFailed = false) { lang = "english"; } - let quoteLength = null; + let quoteLength = -1; if (config.mode === "quote") { quoteLength = randomQuote.group; }