mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 00:54:14 +02:00
better text cleanup
This commit is contained in:
parent
58347be247
commit
f93ae7a6ac
1 changed files with 2 additions and 1 deletions
|
|
@ -405,7 +405,8 @@ Packet.userMessageParsers = {
|
|||
stream.readASCIIString();
|
||||
}
|
||||
// cleanup color codes
|
||||
text = text.replace('\u0001', '');
|
||||
text = text.replace(/\u0001/g, '');
|
||||
text = text.replace(/\u0003/g, '');
|
||||
while ((pos = text.indexOf('\u0007')) !== -1) {
|
||||
text = text.slice(0, pos) + text.slice(pos + 7);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue