Browse Source

刘功能优化1206

liuhairui 3 years ago
parent
commit
96af992ac3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      extend/pinyin/Pinyin.php

+ 3 - 0
extend/pinyin/Pinyin.php

@@ -1052,6 +1052,9 @@ class Pinyin
 
         $s = preg_replace("/\s/is", "_", $s);
 
+
+        $s = str_replace('(', "(", $s);
+        $s = str_replace(')', ")", $s);
 //        $s = preg_replace("/(|\~|\`|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\-|\+|\=|\{|\}|\[|\]|\||\\|\:|\;|\"|\'|\<|\,|\>|\.|\?|\/)/is", "", $s);
 
         $i = 0;