mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 20:40:48 +08:00
fixed indicate typos replace causing funky behaviour with stop on error
This commit is contained in:
parent
aab8792cee
commit
7ddd3c216e
1 changed files with 5 additions and 1 deletions
|
@ -452,7 +452,11 @@ export function updateWordElement(showError = !Config.blindMode) {
|
|||
? wordHighlightClassString
|
||||
: "incorrect"
|
||||
} ${tabChar}${nlChar}">` +
|
||||
(Config.indicateTypos === "replace" ? input[i] : currentLetter) +
|
||||
(Config.indicateTypos === "replace"
|
||||
? input[i] == " "
|
||||
? "_"
|
||||
: input[i]
|
||||
: currentLetter) +
|
||||
(Config.indicateTypos === "below" ? `<hint>${input[i]}</hint>` : "") +
|
||||
"</letter>";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue