From 6916f8ad600c1bb07c3a12ce281b6cad7ca54f4b Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Sun, 23 Feb 2025 21:29:14 +0100 Subject: [PATCH] fix: check filename extension ignoring case --- src/file_io.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/file_io.rs b/src/file_io.rs index f628b3c..babb0e7 100644 --- a/src/file_io.rs +++ b/src/file_io.rs @@ -118,7 +118,9 @@ impl InputFile { for i in 0..archive.len() { if let Ok(mut zip_file) = archive.by_index_decrypt(i, password.as_bytes()) { - if zip_file.is_file() && zip_file.name().ends_with(".osc") { + if zip_file.is_file() + && zip_file.name().to_lowercase().ends_with(".osc") + { let mut buf = String::new(); let _ = zip_file.read_to_string(&mut buf); result.push(InputFile::Osc {