From b16ee7fe10289aa12e25e8326ebec4c8873747e4 Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 5 Dec 2020 13:54:10 +0000 Subject: [PATCH] removed single and double quotes from russian with punctuation mode --- src/js/script.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/script.js b/src/js/script.js index 960c812d5..6b05ac6bc 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -725,14 +725,16 @@ function punctuateWord(previousWord, currentWord, index, maxindex) { } else if ( Math.random() < 0.01 && Misc.getLastChar(previousWord) != "," && - Misc.getLastChar(previousWord) != "." + Misc.getLastChar(previousWord) != "." && + config.language.split("_")[0] !== "russian" ) { //1% chance to add quotes word = `"${word}"`; } else if ( Math.random() < 0.01 && Misc.getLastChar(previousWord) != "," && - Misc.getLastChar(previousWord) != "." + Misc.getLastChar(previousWord) != "." && + config.language.split("_")[0] !== "russian" ) { //1% chance to add single quotes word = `'${word}'`;