mirror of
https://github.com/thelounge/thelounge
synced 2024-09-21 06:32:00 +00:00
Strip control characters from notifications
This commit is contained in:
parent
3c8179fda1
commit
8fff5ee829
1 changed files with 1 additions and 1 deletions
|
@ -1136,7 +1136,7 @@ $(function() {
|
|||
if (msg.type === "message") {
|
||||
title += " says:";
|
||||
}
|
||||
body = msg.text.replace(/\x02|\x1D|\x1F|\x16|\x0F|\x03(?:[0-9]{1,2}(?:,[0-9]{1,2})?)?/g, "").trim();
|
||||
body = msg.text.replace(/\x03(?:[0-9]{1,2}(?:,[0-9]{1,2})?)?|[\x00-\x1F]|\x7F/g, "").trim();
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue