From 4e6e4e10d296effd35304de32df61e89561dd165 Mon Sep 17 00:00:00 2001 From: sprusr Date: Sun, 28 Feb 2016 13:36:32 +0200 Subject: [PATCH] Strip control codes from notifications --- client/js/lounge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index 413e5b21..4b943571 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -702,7 +702,7 @@ $(function() { title += " (" + button.text().trim() + ")"; } title += " says:"; - body = msg.text.trim(); + body = msg.text.replace(/\x02|\x1D|\x1F|\x16|\x0F|\x03(?:[0-9]{1,2}(?:,[0-9]{1,2})?)?/, "").trim(); } var notify = new Notification(title, {