fix: match file extensions with lower case

This commit is contained in:
Kieran 2023-12-20 16:06:57 +00:00
parent 9ed5757875
commit 0c2ed147b0
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -56,7 +56,7 @@ function extractLinks(fragments: Fragment[]) {
if (extension && extension.length > 1) {
const mediaType = (() => {
switch (extension[1]) {
switch (extension[1].toLowerCase()) {
case "gif":
case "jpg":
case "jpeg":