mirror of
https://github.com/agersant/polaris
synced 2024-12-03 10:09:09 +00:00
Fixed a bug where uppercase extensions were not recognized
This commit is contained in:
parent
3c47c0ea7d
commit
889c3251df
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ pub fn is_song(path: &Path) -> bool {
|
|||
Some(e) => e,
|
||||
_ => return false,
|
||||
};
|
||||
match extension {
|
||||
match extension.to_lowercase().as_str() {
|
||||
"mp3" => true,
|
||||
"ogg" => true,
|
||||
"m4a" => true,
|
||||
|
@ -27,7 +27,7 @@ pub fn is_image(path: &Path) -> bool {
|
|||
Some(e) => e,
|
||||
_ => return false,
|
||||
};
|
||||
match extension {
|
||||
match extension.to_lowercase().as_str() {
|
||||
"png" => true,
|
||||
"gif" => true,
|
||||
"jpg" => true,
|
||||
|
|
Loading…
Reference in a new issue