Skip to content

Commit

Permalink
Added normalization to extension name
Browse files Browse the repository at this point in the history
  • Loading branch information
SalOne22 committed Jun 27, 2023
1 parent fbd0e66 commit 073e02e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ impl<'a> Decoder<'a> {
}
};

match extension.to_str() {
match extension.to_ascii_lowercase().to_str() {
Some("jpg") | Some("jpeg") => self.decode_jpeg(),
Some("png") => self.decode_png(),
Some("webp") => self.decode_webp(),
Expand Down

0 comments on commit 073e02e

Please sign in to comment.