diff --git a/common_func.php b/common_func.php index d2cb088..470e800 100644 --- a/common_func.php +++ b/common_func.php @@ -2,7 +2,7 @@ function explode_list(string $str) : array { if (($str = trim($str, " \n\r\t\v\0,")) !== "") { - return array_map(fn($a) => trim($a), explode(",", str_replace(" ", "", $str))); + return array_map(fn($a) => trim($a), explode(",", trim($str))); } else { return []; }