mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 08:16:20 +08:00
removed single and double quotes from russian with punctuation mode
This commit is contained in:
parent
ea26cf18ec
commit
b16ee7fe10
|
@ -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}'`;
|
||||
|
|
Loading…
Reference in a new issue