mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
Remove ANSI characters on clean
This commit is contained in:
@@ -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){
|
||||
|
Reference in New Issue
Block a user