mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 03:08:58 +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){
|
public static function clean($string){
|
||||||
return preg_replace("/§[0123456789abcdefklmnor]/", "", $string);
|
return preg_replace(array("/§[0123456789abcdefklmnor]/", "/\\x1b*/"), "", $string);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function toHTML($string){
|
public static function toHTML($string){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user