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

master
WolverinDEV 2020-12-21 22:59:20 +01:00
parent 3d2d44d193
commit 0fc025545d
1 changed files with 4 additions and 0 deletions

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;
}