use replace over trimEnd to support ff60
This commit is contained in:
parent
390d7c22ca
commit
8fa4a2833f
@ -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, "");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user