mirror of
https://github.com/agersant/polaris
synced 2025-03-02 06:17:10 +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,
|
Some(e) => e,
|
||||||
_ => return false,
|
_ => return false,
|
||||||
};
|
};
|
||||||
match extension {
|
match extension.to_lowercase().as_str() {
|
||||||
"mp3" => true,
|
"mp3" => true,
|
||||||
"ogg" => true,
|
"ogg" => true,
|
||||||
"m4a" => true,
|
"m4a" => true,
|
||||||
|
@ -27,7 +27,7 @@ pub fn is_image(path: &Path) -> bool {
|
||||||
Some(e) => e,
|
Some(e) => e,
|
||||||
_ => return false,
|
_ => return false,
|
||||||
};
|
};
|
||||||
match extension {
|
match extension.to_lowercase().as_str() {
|
||||||
"png" => true,
|
"png" => true,
|
||||||
"gif" => true,
|
"gif" => true,
|
||||||
"jpg" => true,
|
"jpg" => true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue