Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkuifang committed May 25, 2018
1 parent fbe47ad commit e4d308b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/com/example/demo/common/util/StringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,13 @@ public static String[] string2Array(String obj) {

/**
* 判断是否包含中文标点符号
*
* @param c
* @return
*/
public static boolean isChineseByScript(char c) {
Character.UnicodeScript sc = Character.UnicodeScript.of(c);
if (sc == Character.UnicodeScript.HAN) {
return true;
}
return false;
return (sc == Character.UnicodeScript.HAN);
}

// public static void main(String... args) {
Expand Down

0 comments on commit e4d308b

Please sign in to comment.