From f62917578e1eabea9841770eeacdf6be8feaf2ba Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 5 Sep 2024 18:02:58 +0700 Subject: [PATCH] Revert "Update common.php" This reverts commit 3793263ff0e5f7c1840955c6154d9d8340c60096. --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 5cf703512..96de37e9d 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\s+/', ' ', trim($str)); + return preg_replace('#\s+#u', ' ', trim($str)); } /**