Fix can’t insert jpeg file

This commit is contained in:
will
2019-01-06 13:25:57 +08:00
parent 6c75cb1252
commit abd110c620

View File

@@ -5,6 +5,6 @@ import java.io.File;
public class FileUtils {
public static boolean isImageFile(File file) {
return file != null && file.isFile() && file.getName().matches("([^\\s]+(\\.(?i)(jpg|png|gif|bmp))$)");
return file != null && file.isFile() && file.getName().matches("([^\\s]+(\\.(?i)(jpeg|jpg|png|gif|bmp))$)");
}
}