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:
Leonabcd123 2025-12-10 21:45:48 +02:00 committed by GitHub
parent 1dd0ca70ec
commit 3482242660
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) +