潘志宝
4 天以前 b8a0affd03b5fa9fa33cd6f870e90394c2df86c7
iailab-framework/iailab-common/src/main/java/com/iailab/framework/common/util/string/StrUtils.java
@@ -77,4 +77,14 @@
                .collect(Collectors.joining("\n"));
    }
    /**
     * 判断字符串是不是数字
     *
     * @param str
     * @return
     */
    public static boolean isNumeric(String str) {
        return str.matches("-?\\d+(\\.\\d+)?");
    }
}