From d451570a61c2aa3cd04d5030ae3e0b4862d98cb5 Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 1 Dec 2021 18:40:32 +0000 Subject: [PATCH] only adding periods to last numbers when puctuation is enabled --- src/js/test/test-logic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/test/test-logic.js b/src/js/test/test-logic.js index 7b0fd7210..75b1dfcf7 100644 --- a/src/js/test/test-logic.js +++ b/src/js/test/test-logic.js @@ -912,7 +912,7 @@ export async function init() { if (Config.punctuation) { randomWord = punctuateWord(previousWord, randomWord, i, wordsBound); } - if (Config.numbers) { + if (Config.numbers && Config.punctuation) { if ( Math.random() < 0.1 && i !== 0 &&