diff --git a/common.php b/common.php index 96de37e9d..5cf703512 100644 --- a/common.php +++ b/common.php @@ -245,7 +245,7 @@ function htmlCHR($txt, bool $double_encode = false, int $quote_style = ENT_QUOTE function str_compact(string|null $str): ?string { $str ??= ''; - return preg_replace('#\s+#u', ' ', trim($str)); + return preg_replace('/\s\s+/', ' ', trim($str)); } /**