diff --git a/public/script.js b/public/script.js index ca01c3383..20619f922 100644 --- a/public/script.js +++ b/public/script.js @@ -1912,7 +1912,7 @@ function cleanGroupMessage(getMessage) { const regex = new RegExp(`(^|\n)${escapeRegex(name)}:`); const nameMatch = getMessage.match(regex); if (nameMatch) { - getMessage = getMessage.substring(nameMatch.index + nameMatch[0].length); + getMessage = getMessage.substring(0, nameMatch.index); } } }