mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-29 11:26:13 +08:00
fix(indicate typos): Replace tabs with _ when indicate typos is replace or both (@Leonabcd123) (#7191)
### Description When indicate typos is set to replace or to both, make sure to have tabs replaced with _. Current behavior is that the literal tab character replaces the char, making it disappear.
This commit is contained in:
parent
1dd0ca70ec
commit
3482242660
1 changed files with 1 additions and 1 deletions
|
|
@ -856,7 +856,7 @@ export async function updateWordLetters({
|
|||
`<letter class="incorrect ${tabChar}${nlChar}">` +
|
||||
(Config.indicateTypos === "replace" ||
|
||||
Config.indicateTypos === "both"
|
||||
? inputChars[i] === " "
|
||||
? inputChars[i] === " " || inputChars[i] === "\t"
|
||||
? "_"
|
||||
: inputChars[i]
|
||||
: currentLetter) +
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue