Merge pull request #818 from thelounge/xpaw/no-notif-controls

Strip control characters from notifications
This commit is contained in:
Pavel Djundik 2016-12-19 12:52:12 +02:00 committed by GitHub
commit d24eb44991

View File

@ -1142,7 +1142,7 @@ $(function() {
if (msg.type === "message") { if (msg.type === "message") {
title += " says:"; title += " says:";
} }
body = msg.text.replace(/\x02|\x1D|\x1F|\x16|\x0F|\x03(?:[0-9]{1,2}(?:,[0-9]{1,2})?)?/g, "").trim(); body = msg.text.replace(/\x03(?:[0-9]{1,2}(?:,[0-9]{1,2})?)?|[\x00-\x1F]|\x7F/g, "").trim();
} }
try { try {