spanish-quizzer

An app to quiz you on Spanish vocabulary and verb conjugations
git clone https://git.ashermorgan.net/spanish-quizzer/
Log | Files | Refs | README

commit ee762ae07cddfa9c1c6ee3a5380341109a3adc63
parent 6589f0b51a983fd383f9827e3676eaab88c7da9f
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Fri, 10 Apr 2020 08:18:52 -0700

Implement the removal of double spaces.

Diffstat:
Mindex.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js @@ -522,7 +522,7 @@ function Check() { responce = responce.replace("u~", "ΓΌ"); // Apply u with diaeresis shortcut var responces = responce.split(","); // Split string by commas for (var i = 0; i < responces.length; i++) { - responces[i] = responces[i].trim(); // Trim whitespace + responces[i] = responces[i].split(" ").filter(function(x){return x !== "";}).join(" "); // Trim whitespace } // Parse answer