Merge pull request #123 from xPaw/strip-colors

Strip control codes from notifications
This commit is contained in:
Alistair McKinlay 2016-03-02 08:31:55 +00:00
commit 88257b4931

View File

@ -702,7 +702,7 @@ $(function() {
title += " (" + button.text().trim() + ")"; title += " (" + button.text().trim() + ")";
} }
title += " says:"; 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, { var notify = new Notification(title, {