mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
Allow numbers without punctuation mode (#2151) by DanGonite57
This commit is contained in:
parent
f6848d0937
commit
aeca84e752
1 changed files with 2 additions and 2 deletions
|
@ -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 += ".";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue