Strip "\n" at the back of the chat messages
parent
3d2d44d193
commit
0fc025545d
|
@ -113,5 +113,9 @@ export function preprocessChatMessageForSend(message: string) : string {
|
||||||
message = bbcodeLinkUrls(message, noParseRanges);
|
message = bbcodeLinkUrls(message, noParseRanges);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while(message.endsWith("\n")) {
|
||||||
|
message = message.substring(0, message.length - 1);
|
||||||
|
}
|
||||||
|
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
Loading…
Reference in New Issue