mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Remove ANSI characters on clean
This commit is contained in:
parent
12ddf530b1
commit
c904e8bc0e
@ -49,7 +49,7 @@ class TextFormat{
|
||||
}
|
||||
|
||||
public static function clean($string){
|
||||
return preg_replace("/§[0123456789abcdefklmnor]/", "", $string);
|
||||
return preg_replace(array("/§[0123456789abcdefklmnor]/", "/\\x1b*/"), "", $string);
|
||||
}
|
||||
|
||||
public static function toHTML($string){
|
||||
|
Loading…
x
Reference in New Issue
Block a user