|
@@ -106,7 +106,7 @@ public class PingYinUtil {
|
|
public static boolean isContainChinese(String str) {
|
|
public static boolean isContainChinese(String str) {
|
|
Pattern p = Pattern.compile("[\u4e00-\u9fa5]");
|
|
Pattern p = Pattern.compile("[\u4e00-\u9fa5]");
|
|
Matcher m = p.matcher(str);
|
|
Matcher m = p.matcher(str);
|
|
- if (m.matches()) {
|
|
|
|
|
|
+ if (m.find()) {
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
return false;
|