Explorar el Código

刘功能优化1206

liuhairui hace 3 años
padre
commit
96af992ac3
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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;