Skip to content

Commit

Permalink
fix(file_browser): case-insensitive file extension matching
Browse files Browse the repository at this point in the history
  • Loading branch information
lautarodragan committed Oct 30, 2024
1 parent 802887d commit 7aa1731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/file_browser/file_browser_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pub fn dir_entry_has_song_extension(dir_entry: &DirEntry) -> bool {
dir_entry
.path()
.extension()
.is_some_and(|e| VALID_EXTENSIONS.contains(&e.to_str().unwrap()))
.is_some_and(|e| VALID_EXTENSIONS.contains(&e.to_str().unwrap().to_lowercase().as_str()))
}

pub fn dir_entry_is_song(dir_entry: &DirEntry) -> bool {
Expand Down

0 comments on commit 7aa1731

Please sign in to comment.