Merge pull request #145 from xPaw/fix-strip-notif

Fix stripping multiple colours from notifications
This commit is contained in:
Jérémie Astori 2016-03-05 14:42:43 -05:00
commit 863333a88a

View File

@ -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, {