From 6ed440718d28da5449e97ae34a8a4bfcae91146f Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 29 Aug 2023 04:59:27 +0200 Subject: [PATCH] Update src/Content/Smilies.php Co-authored-by: Hypolite Petovan --- src/Content/Smilies.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/Smilies.php b/src/Content/Smilies.php index 0c3397f13e..b7abbd8e5f 100644 --- a/src/Content/Smilies.php +++ b/src/Content/Smilies.php @@ -294,7 +294,7 @@ class Smilies */ public static function isEmojiPost(string $body): bool { - $conv = preg_replace('#\s#', '', html_entity_decode($body)); + $conv = preg_replace('#\s#u', '', html_entity_decode($body)); // Emojis are always 4 byte Unicode characters return (!empty($conv) && (strlen($conv) / mb_strlen($conv) == 4)); }