From aeca84e752402ebba54bbd954eaf0bdb647790a6 Mon Sep 17 00:00:00 2001 From: DanGonite57 Date: Tue, 7 Dec 2021 12:28:58 +0000 Subject: [PATCH] Allow numbers without punctuation mode (#2151) by DanGonite57 --- src/js/test/test-logic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/test/test-logic.js b/src/js/test/test-logic.js index 75b1dfcf7..90a28114c 100644 --- a/src/js/test/test-logic.js +++ b/src/js/test/test-logic.js @@ -912,14 +912,14 @@ export async function init() { if (Config.punctuation) { randomWord = punctuateWord(previousWord, randomWord, i, wordsBound); } - if (Config.numbers && Config.punctuation) { + if (Config.numbers) { if ( Math.random() < 0.1 && i !== 0 && Misc.getLastChar(previousWord) !== "." ) { randomWord = Misc.getNumbers(4); - if (i == wordsBound - 1) { + if (i == wordsBound - 1 && Config.punctuation) { randomWord += "."; } }