From 25051907e6c7a652c5909f9e805039de0512a1cc Mon Sep 17 00:00:00 2001 From: Natsumi Date: Fri, 20 Aug 2021 22:02:54 +1200 Subject: [PATCH] Fix space at the end of status causing status change event --- html/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/src/app.js b/html/src/app.js index 14de399f..aaab8943 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -14380,7 +14380,7 @@ speechSynthesis.getVoices(); var regex = new RegExp(symbolList[key], 'g'); newText = newText.replace(regex, key); } - return newText.replace(/ {1,}/g, ' '); + return newText.replace(/ {1,}/g, ' ').trimRight(); }; $app.methods.checkCanInvite = function (location) {