|
|
@@ -6,7 +6,7 @@ import java.util.regex.Pattern;
|
|
|
public class StringUtils extends org.apache.commons.lang3.StringUtils {
|
|
|
private static Pattern FRACTIONAL_NUMERIC = Pattern.compile("^[\\-+]?\\d+(\\.\\d+)?$");
|
|
|
|
|
|
- private static Pattern CHINESE_CODE=Pattern.compile("^[\\u4e00-\\u9fa5]{0,}$");
|
|
|
+ private static Pattern CHINESE_CODE=Pattern.compile("[\u4e00-\u9fa5]");
|
|
|
public static boolean isFractionalNumeric(String val) {
|
|
|
return FRACTIONAL_NUMERIC.matcher(val).matches();
|
|
|
}
|