From 5877e2ebe59b076ebf24c0c211063f385f260287 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sat, 5 Mar 2016 21:40:49 +0200 Subject: [PATCH] Fix stripping colours 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 bb256006..a68a3ee5 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -697,7 +697,7 @@ $(function() { title += " (" + button.text().trim() + ")"; } title += " says:"; - body = msg.text.replace(/\x02|\x1D|\x1F|\x16|\x0F|\x03(?:[0-9]{1,2}(?:,[0-9]{1,2})?)?/, "").trim(); + body = msg.text.replace(/\x02|\x1D|\x1F|\x16|\x0F|\x03(?:[0-9]{1,2}(?:,[0-9]{1,2})?)?/g, "").trim(); } var notify = new Notification(title, {