file_type.service: allow apng images to be rendered

Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
Yonle 2023-12-04 21:52:28 +07:00
parent 02fff5ddd5
commit fb4d43ced2
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ export const fileType = mimetype => {
}
export const fileTypeExt = url => {
if (url.match(/\.(png|jpe?g|gif|webp|avif)$/)) {
if (url.match(/\.(a?png|jpe?g|gif|webp|avif)$/)) {
return 'image'
}
if (url.match(/\.(ogv|mp4|webm|mov)$/)) {