Fix image extension filter to include oowow.img.xz and similar files

This commit is contained in:
SuperKali
2025-12-22 22:17:04 +01:00
parent 426a6717e4
commit 3011dd7094

View File

@@ -29,9 +29,11 @@ fn capitalize_vendor(vendor: &str) -> String {
}
/// Check if file extension is a valid image file
/// Valid extensions: img.xz, oowow.img.xz, kebab.img.xz, etc.
/// Invalid extensions: .asc, .torrent, .sha
fn is_valid_image_extension(ext: &str) -> bool {
let ext_lower = ext.to_lowercase();
ext_lower.starts_with("img")
ext_lower.contains("img")
&& !ext_lower.contains("asc")
&& !ext_lower.contains("torrent")
&& !ext_lower.contains("sha")