mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Match IO extensions in a case-insensitive manner (#2683)
This commit is contained in:
parent
bccc5b0995
commit
4cf2ab35ab
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ impl Collection {
|
||||||
if meta.is_file() {
|
if meta.is_file() {
|
||||||
if let Some(ext_osstr) = file_path.extension() {
|
if let Some(ext_osstr) = file_path.extension() {
|
||||||
if let Some(ext_str) = ext_osstr.to_str() {
|
if let Some(ext_str) = ext_osstr.to_str() {
|
||||||
if supported_extensions.contains(&ext_str) {
|
if supported_extensions.contains(&ext_str.to_lowercase().as_str()) {
|
||||||
return Ok(true);
|
return Ok(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue