interchangable quotes

This commit is contained in:
Miodec 2021-01-28 18:48:06 +00:00
parent ad004cd0cd
commit 3fa18310ea

View file

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