mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 06:05:16 +08:00
accuracy calculation now includes spaces
This commit is contained in:
parent
1bf9075934
commit
4feba0e724
1 changed files with 2 additions and 0 deletions
|
@ -3422,6 +3422,7 @@ $(document).keydown((event) => {
|
|||
// .querySelector("#words .word.active")
|
||||
// .setAttribute("input", currentInput);
|
||||
if (currentWord == currentInput) {
|
||||
accuracyStats.correct++;
|
||||
inputHistory.push(currentInput);
|
||||
currentInput = "";
|
||||
currentWordIndex++;
|
||||
|
@ -3430,6 +3431,7 @@ $(document).keydown((event) => {
|
|||
updateCaretPosition();
|
||||
currentKeypressCount++;
|
||||
} else {
|
||||
accuracyStats.incorrect++;
|
||||
if (config.stopOnError) {
|
||||
if (config.difficulty == "expert" || config.difficulty == "master") {
|
||||
//failed due to diff when pressing space
|
||||
|
|
Loading…
Reference in a new issue