* Fix error.

This commit is contained in:
liyuchun
2022-04-28 09:09:08 +00:00
parent 83fa4afc83
commit 5a6ea32f8e
+5
View File
@@ -101,6 +101,11 @@ class fixer extends baseFixer
* @return object
*/
public function filterEmoji($value){
if(is_object($value) or is_array($value))
{
foreach($value as $subValue) $this->filterEmoji($subValue);
}
$value = preg_replace_callback('/./u', function (array $match)
{
return strlen($match[0]) >= 4 ? '' : $match[0];