mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 08:16:20 +08:00
Removed {} and [] from the punctuation mode
This commit is contained in:
parent
eafc22c36e
commit
69c32a4e75
|
@ -740,20 +740,6 @@ function punctuateWord(previousWord, currentWord, index, maxindex) {
|
|||
) {
|
||||
//1% chance to add parentheses
|
||||
word = `(${word})`;
|
||||
} else if (
|
||||
Math.random() < 0.01 &&
|
||||
getLastChar(previousWord) != "," &&
|
||||
getLastChar(previousWord) != "."
|
||||
) {
|
||||
//1% chance to add braces
|
||||
word = `{${word}}`;
|
||||
} else if (
|
||||
Math.random() < 0.01 &&
|
||||
getLastChar(previousWord) != "," &&
|
||||
getLastChar(previousWord) != "."
|
||||
) {
|
||||
//1% chance to add brackets
|
||||
word = `[${word}]`;
|
||||
} else if (Math.random() < 0.01) {
|
||||
//1% chance to add a colon
|
||||
word = word + ":";
|
||||
|
|
Loading…
Reference in a new issue