mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-03 18:25:02 +08:00
impr: replace dead characters when using indicate typos: replace
This commit is contained in:
parent
a00a8bb94c
commit
016e55036c
1 changed files with 7 additions and 1 deletions
|
@ -871,7 +871,13 @@ export async function updateWordElement(
|
|||
) {
|
||||
ret += `<letter class="${
|
||||
Config.highlightMode === "word" ? wordHighlightClassString : ""
|
||||
} dead">${currentLetter}</letter>`;
|
||||
} dead">${
|
||||
Config.indicateTypos === "replace"
|
||||
? input[i] === " "
|
||||
? "_"
|
||||
: input[i]
|
||||
: currentLetter
|
||||
}</letter>`;
|
||||
} else if (!showError) {
|
||||
if (currentLetter !== undefined) {
|
||||
ret += `<letter class="${
|
||||
|
|
Loading…
Reference in a new issue