remove unknown char

This commit is contained in:
Christopher 2020-10-23 21:48:21 +02:00
parent dc85c0f47f
commit 22b2447124
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@
function clean($string)
{
$string = str_repeat("", "", $string);
return preg_replace('#\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $string);
}