mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -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 let Some(ext_osstr) = file_path.extension() {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue