mirror of
https://github.com/leanote/leanote-android.git
synced 2025-10-14 14:10:56 +00:00
Fix can’t insert jpeg file
This commit is contained in:
@@ -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))$)");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user