Skip to content

Commit daddea0

Browse files
committed
Support uppercase extensions in image preview.
1 parent c00f2d8 commit daddea0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/image_viewer/src/image_viewer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ impl project::Item for ImageItem {
3636
.path
3737
.extension()
3838
.and_then(OsStr::to_str)
39+
.map(str::to_lowercase)
3940
.unwrap_or_default();
41+
let ext = ext.as_str();
4042

4143
// Only open the item if it's a binary image (no SVGs, etc.)
4244
// Since we do not have a way to toggle to an editor

0 commit comments

Comments
 (0)