Show preview also for non lowercase extensions (#694)
This commit is contained in:
parent
58b3d3e556
commit
cb7e9573ef
|
@ -725,7 +725,7 @@ fn show_preview(
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(extension) = Path::new(&name).extension() {
|
if let Some(extension) = Path::new(&name).extension() {
|
||||||
let extension = format!(".{}", extension.to_string_lossy());
|
let extension = format!(".{}", extension.to_string_lossy().to_lowercase());
|
||||||
if !RAW_IMAGE_EXTENSIONS.contains(&extension.as_str()) && !IMAGE_RS_EXTENSIONS.contains(&extension.as_str()) {
|
if !RAW_IMAGE_EXTENSIONS.contains(&extension.as_str()) && !IMAGE_RS_EXTENSIONS.contains(&extension.as_str()) {
|
||||||
break 'dir;
|
break 'dir;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue