mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-08 08:42:17 +02:00
Strip control codes from notifications
This commit is contained in:
parent
3b17b00072
commit
4e6e4e10d2
|
@ -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, {
|
||||
|
|
Loading…
Reference in a new issue