only adding periods to last numbers when puctuation is enabled

This commit is contained in:
Jack 2021-12-01 18:40:32 +00:00
parent 16053d3906
commit d451570a61

View file

@ -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 &&