src/main/java/org/edgegallery/appstore/domain/model/releases/AbstractFileChecker.java
public static boolean isValid(String fileName) {
        if (StringUtils.isEmpty(fileName) || fileName.length() > MAX_LENGTH_FILE_NAME) {
            return false;
        }
        fileName = Normalizer.normalize(fileName, Normalizer.Form.NFKC);
        Matcher matcher = Pattern.compile(REG).matcher(fileName);
        return matcher.matches();
    }
/**
     * check if file name if it's invalid.
     *
     * @param fileName file name
     */
check if file name if it's invalid.
@param fileName file name
check if file name if it ' s invalid . @param fileName file name
public static boolean isValid(String fileName) {
        if (StringUtils.isEmpty(fileName) || fileName.length() > MAX_LENGTH_FILE_NAME) {
            return false;
        }
        fileName = Normalizer.normalize(fileName, Normalizer.Form.NFKC);
        Matcher matcher = Pattern.compile(REG).matcher(fileName);
        return matcher.matches();
    }
public static boolean isValid ( String fileName ) { if ( StringUtils . isEmpty ( fileName ) || fileName . length ( ) > MAX_LENGTH_FILE_NAME ) { return false ; } fileName = Normalizer . normalize ( fileName , Normalizer . Form . NFKC ) ; Matcher matcher = Pattern . compile ( REG ) . matcher ( fileName ) ; return matcher . matches ( ) ; }
check if file name if it's invalid.
check if file name if it ' s invalid .