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)
|
// Remove empty lines around the MOTD (but not within it)
|
||||||
return lines
|
return lines
|
||||||
.map((line) => line.trimEnd())
|
.map((line) => line.replace(/\s*$/,""))
|
||||||
.join("\n")
|
.join("\n")
|
||||||
.replace(/^[\r\n]+|[\r\n]+$/g, "");
|
.replace(/^[\r\n]+|[\r\n]+$/g, "");
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user