|
|
@@ -370,9 +370,6 @@ class Tool {
|
|
|
if (preg_match('/\,/', $text)){
|
|
|
$text = preg_replace('/\,/', '|', $text);
|
|
|
}
|
|
|
- if (preg_match('/[\x{FF08}-\x{FF09}]/u', $text)){
|
|
|
- $text = preg_replace('/\,/', '|', $text);
|
|
|
- }
|
|
|
// 只有是中文时才需要转码
|
|
|
if (!preg_match('/[\x{4e00}-\x{9fa5}]/u', $text)) {
|
|
|
return $text;
|
|
|
@@ -392,6 +389,15 @@ class Tool {
|
|
|
return $arr;
|
|
|
}
|
|
|
|
|
|
+ public static function mbSignConvert($string) {
|
|
|
+ if (false !== mb_strpos($string, '(') || false !== mb_strpos($string, ')')) {
|
|
|
+ $new = str_replace('(', '(', $string);
|
|
|
+ return str_replace(')', ')', $new);
|
|
|
+ }
|
|
|
+
|
|
|
+ return $string;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取目录内的所有文件
|
|
|
* @param $dirPath
|