Strip "\n" at the back of the chat messages

This commit is contained in:
WolverinDEV 2020-12-21 22:59:20 +01:00
parent 3d2d44d193
commit 0fc025545d

View file

@ -113,5 +113,9 @@ export function preprocessChatMessageForSend(message: string) : string {
message = bbcodeLinkUrls(message, noParseRanges);
}
while(message.endsWith("\n")) {
message = message.substring(0, message.length - 1);
}
return message;
}