admin
2021-07-28 c0269fcfa876b9c5cf309b2006462b4d09c5ef95
library-mine/src/com/lcjian/library/util/common/StringUtils.java
@@ -82,11 +82,7 @@
    // 检测字符串是否符合用户名
    public static boolean checkingMsg(int len) {
        boolean isValid = true;
        if (5 < len && len < 21) {
            isValid = false;
        } else {
            isValid = true;
        }
        isValid = 5 >= len || len >= 21;
        return isValid;
    }
@@ -113,9 +109,7 @@
    public static boolean isDouble(String value) {
        try {
            Double.parseDouble(value);
            if (value.contains("."))
                return true;
            return false;
            return value.contains(".");
        } catch (NumberFormatException e) {
            return false;
        }
@@ -123,11 +117,7 @@
    // 检测字符串是否为中文字符
    public static boolean isChinesrChar(String str) {
        if (str.length() < str.getBytes().length) {
            return true;
        } else {
            return false;
        }
        return str.length() < str.getBytes().length;
    }
    // 判断字符串是否为邮箱