fix: match file extensions with lower case
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
9ed5757875
commit
0c2ed147b0
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user