remove \r

This commit is contained in:
Christopher 2020-10-23 22:09:52 +02:00
parent 3fb5721c6d
commit 12663cf793
1 changed files with 1 additions and 1 deletions

View File

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