mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 00:03:44 +08:00
interchangable dashes
This commit is contained in:
parent
4d4987a5b0
commit
4c33d94d50
1 changed files with 5 additions and 0 deletions
|
@ -5599,6 +5599,11 @@ function handleAlpha(event) {
|
|||
thisCharCorrect = true;
|
||||
}
|
||||
|
||||
if ((event.key === "–" || event.key === "—") && nextCharInWord == "-") {
|
||||
event.key = "-";
|
||||
thisCharCorrect = true;
|
||||
}
|
||||
|
||||
if (!thisCharCorrect) {
|
||||
accuracyStats.incorrect++;
|
||||
currentError.count++;
|
||||
|
|
Loading…
Reference in a new issue