mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-28 09:36:40 +08:00
interchangable quotes
This commit is contained in:
parent
ad004cd0cd
commit
3fa18310ea
1 changed files with 12 additions and 0 deletions
|
@ -5426,6 +5426,18 @@ function handleAlpha(event) {
|
|||
}
|
||||
}
|
||||
|
||||
if (event.key === "'" || event.key === "’") {
|
||||
if (nextCharInWord == "'" || nextCharInWord == "’") {
|
||||
thisCharCorrect = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (event.key === '"' || event.key === "”") {
|
||||
if (nextCharInWord == '"' || nextCharInWord == "”") {
|
||||
thisCharCorrect = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!thisCharCorrect) {
|
||||
accuracyStats.incorrect++;
|
||||
currentError.count++;
|
||||
|
|
Loading…
Add table
Reference in a new issue