Skip to content

Commit 3482242

Browse files
authored
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.
1 parent 1dd0ca7 commit 3482242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/ts/test/test-ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ export async function updateWordLetters({
856856
`<letter class="incorrect ${tabChar}${nlChar}">` +
857857
(Config.indicateTypos === "replace" ||
858858
Config.indicateTypos === "both"
859-
? inputChars[i] === " "
859+
? inputChars[i] === " " || inputChars[i] === "\t"
860860
? "_"
861861
: inputChars[i]
862862
: currentLetter) +

0 commit comments

Comments
 (0)