diff --git a/common.php b/common.php index 47c39eb68..9c619ba1a 100644 --- a/common.php +++ b/common.php @@ -244,7 +244,7 @@ function htmlCHR($txt, bool $double_encode = false, int $quote_style = ENT_QUOTE */ function str_compact($str) { - return preg_replace('#\s+#u', ' ', trim($str ?? '')); + return preg_replace('/\s\s+/', ' ', trim($str ?? '')); } /**