From 8fa4a2833f54b9796885fb6c79bcec87e99c3081 Mon Sep 17 00:00:00 2001 From: MiniDigger Date: Tue, 17 Jul 2018 15:25:30 +0200 Subject: [PATCH] use replace over trimEnd to support ff60 --- client/js/render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ""); }