From 2a31a1bd8420d9c6507ce810be7eacca29470e11 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Mon, 2 Nov 2020 17:46:22 +0000 Subject: [PATCH] Fix WebP2 signature --- src/lib/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/util.ts b/src/lib/util.ts index e278247c..96cfb241 100644 --- a/src/lib/util.ts +++ b/src/lib/util.ts @@ -129,7 +129,7 @@ const magicNumberToMimeType = new Map([ [/^II*/, 'image/tiff'], [/^MM\x00*/, 'image/tiff'], [/^RIFF....WEBPVP8[LX ]/, 'image/webp'], - [/\xF4\xFF\x6F/, 'image/webp2'], // Not sure about this one tho lol + [/^\xF4\xFF\x6F/, 'image/webp2'], [/^\x00\x00\x00 ftypavif\x00\x00\x00\x00/, 'image/avif'], [/^\xff\x0a/, 'image/jpegxl'], ]);