diff --git a/client/js/render.js b/client/js/render.js index ddde4400..d8db36ef 100644 --- a/client/js/render.js +++ b/client/js/render.js @@ -113,7 +113,7 @@ function buildChatMessage(msg) { // Remove empty lines around the MOTD (but not within it) msg.text = lines - .map((line) => line.trimEnd()) + .map((line) => line.replace(/\s*$/, "")) .join("\n") .replace(/^[\r\n]+|[\r\n]+$/g, ""); }