This commit is contained in:
yoannchb-pro
2023-03-20 22:35:36 -04:00
committed by GitHub
parent 17b76728cd
commit a6be30ed39
+1 -1
View File
@@ -65,7 +65,7 @@ chrome.storage.sync.get(["moodleGPT"]).then(function (storage) {
* @param {*} text
*/
function normalizeText(text) {
return text.replace(/\n+/gi, "\n").toLowerCase().trim();
return text.replace(/\n+/g, "\n").replace(/\s+/g, " ").toLowerCase().trim();
}
/**