From 8de5b978043b782e89a8fbacc06217f5ebc33b8e Mon Sep 17 00:00:00 2001 From: xxkfqz Date: Fri, 2 Jul 2021 15:02:06 +0500 Subject: [PATCH] fix: more JPG extensions --- src/info/filetype.rs | 8 ++++---- src/output/icons.rs | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/info/filetype.rs b/src/info/filetype.rs index 1def7a2..c69a5ea 100644 --- a/src/info/filetype.rs +++ b/src/info/filetype.rs @@ -35,10 +35,10 @@ impl FileExtensions { fn is_image(&self, file: &File<'_>) -> bool { file.extension_is_one_of( &[ - "png", "jpeg", "jpg", "gif", "bmp", "tiff", "tif", - "ppm", "pgm", "pbm", "pnm", "webp", "raw", "arw", - "svg", "stl", "eps", "dvi", "ps", "cbr", "jpf", - "cbz", "xpm", "ico", "cr2", "orf", "nef", "heif", + "png", "jfi", "jfif", "jif", "jpe", "jpeg", "jpg", "gif", "bmp", + "tiff", "tif", "ppm", "pgm", "pbm", "pnm", "webp", "raw", "arw", + "svg", "stl", "eps", "dvi", "ps", "cbr", "jpf", "cbz", "xpm", + "ico", "cr2", "orf", "nef", "heif", ]) } diff --git a/src/output/icons.rs b/src/output/icons.rs index 49007b8..3769350 100644 --- a/src/output/icons.rs +++ b/src/output/icons.rs @@ -206,6 +206,10 @@ pub fn icon_for_file(file: &File<'_>) -> char { "jad" => '\u{e256}', //  "jar" => '\u{e204}', //  "java" => '\u{e204}', //  + "jfi" => '\u{f1c5}', //  + "jfif" => '\u{f1c5}', //  + "jif" => '\u{f1c5}', //  + "jpe" => '\u{f1c5}', //  "jpeg" => '\u{f1c5}', //  "jpg" => '\u{f1c5}', //  "js" => '\u{e74e}', // 