Don't use trimEnd

This commit is contained in:
Pavel Djundik 2018-07-17 16:38:17 +03:00 committed by Pavel Djundik
parent c70b4d4c80
commit c168e15db8

View File

@ -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, "");
}, },