Show preview also for non lowercase extensions (#694)

This commit is contained in:
Rafał Mikrut 2022-04-26 06:28:51 +02:00 committed by GitHub
parent 58b3d3e556
commit cb7e9573ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -725,7 +725,7 @@ fn show_preview(
}
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()) {
break 'dir;
}