public static boolean isValid(String value) {
        return value.matches("^0*[0-9]+(\\.[0-9]+)*(-[a-zA-Z0-9]+)?$");
    }
Check the string if is valid.
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/plugin/JarHell.java