Remove all carriage return and linefeeds from chat input string on 'Enter' event

Tag 2022-12-26 14:32:32 -08:00
rodzic a3cf01e0fd
commit 8830ac7f6f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -83,7 +83,7 @@
if (event.key === "Enter")
{
// Do work
var msg = messageInput.value.trim();
var msg = messageInput.value.replace(/[\n\r]/g, '');
if (msg.length > 0 && g_currentId != 0 && g_currentId in window.opener.g_gtFlagPins && window.opener.g_gtFlagPins[g_currentId].canmsg == true)
{
var worker = "";