mirror of
https://github.com/leanote/leanote-android.git
synced 2025-10-15 06:40:58 +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 class FileUtils {
|
||||||
public static boolean isImageFile(File file) {
|
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