mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-18 13:35:10 +02:00
Don't use trimEnd
This commit is contained in:
parent
c70b4d4c80
commit
c168e15db8
|
@ -27,7 +27,7 @@ export default {
|
|||
|
||||
// Remove empty lines around the MOTD (but not within it)
|
||||
return lines
|
||||
.map((line) => line.trimEnd())
|
||||
.map((line) => line.replace(/\s*$/,""))
|
||||
.join("\n")
|
||||
.replace(/^[\r\n]+|[\r\n]+$/g, "");
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue