Merge pull request #2657 from MiniDigger/patch-1
use replace over trimEnd to support ff60
This commit is contained in:
commit
482bdf51f6
@ -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