feat: 导出任务功能

This commit is contained in:
kuaifan
2022-02-28 00:00:55 +08:00
parent f17009a988
commit cad253b85f
5 changed files with 334 additions and 7 deletions

View File

@@ -2967,4 +2967,19 @@ class Base
$matrix = array_unique($matrix, SORT_REGULAR);
return array_merge($matrix);
}
/**
* 去除emoji表情
* @param $str
* @return string|string[]|null
*/
public static function filterEmoji($str)
{
return preg_replace_callback(
'/./u',
function (array $match) {
return strlen($match[0]) >= 4 ? '' : $match[0];
},
$str);
}
}