diff --git a/Web/Models/Entities/Traits/TRichText.php b/Web/Models/Entities/Traits/TRichText.php index 7ea119e6..05ab2dd4 100644 --- a/Web/Models/Entities/Traits/TRichText.php +++ b/Web/Models/Entities/Traits/TRichText.php @@ -49,7 +49,7 @@ trait TRichText private function removeZalgo(string $text): string { - return preg_replace("%[\x{0300}-\x{036F}]{3,}%Xu", "�", $text); + return preg_replace("%\p{M}{3,}%Xu", "�", $text); } function resolveMentions(array $skipUsers = []): \Traversable