From 8f20ee1a163d7c4a01771da7073096aa63a4ddae Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 2 Jul 2020 22:09:07 +0100 Subject: [PATCH] updated limits again --- public/js/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/script.js b/public/js/script.js index ec7904d2e..db5639c97 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -1136,7 +1136,7 @@ function changeCustomText() { customText = customText.replace(/[\n\r\t ]/gm, ' '); customText = customText.replace(/ +/gm, ' '); customText = customText.split(' '); - if(customText.length > 10000){ + if(customText.length >= 10000){ showNotification('Custom text cannot be longer than 10000 words.',4000); changeMode('time'); customText = "The quick brown fox jumped over the lazy dog".split(' '); @@ -1594,7 +1594,7 @@ $(document).on("click", "#top .config .wordCount .text-button", (e) => { wrd = $(e.currentTarget).attr('wordCount'); if(wrd == "custom"){ let newWrd = prompt('Custom word amount'); - if(newWrd !== null && !isNaN(newWrd) && newWrd > 0 && newWrd < 10000){ + if(newWrd !== null && !isNaN(newWrd) && newWrd > 0 && newWrd <= 10000){ changeWordCount(newWrd); if(newWrd > 2000){ showNotification("Very long tests can cause performance issues or crash the website on some machines!",5000);