mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-04-19 11:46:50 +00:00
fix: check filename extension ignoring case
This commit is contained in:
parent
e58dd8a746
commit
6916f8ad60
@ -118,7 +118,9 @@ impl InputFile {
|
|||||||
|
|
||||||
for i in 0..archive.len() {
|
for i in 0..archive.len() {
|
||||||
if let Ok(mut zip_file) = archive.by_index_decrypt(i, password.as_bytes()) {
|
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 mut buf = String::new();
|
||||||
let _ = zip_file.read_to_string(&mut buf);
|
let _ = zip_file.read_to_string(&mut buf);
|
||||||
result.push(InputFile::Osc {
|
result.push(InputFile::Osc {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user