Fix WebP sniffing some more

This commit is contained in:
atjn
2021-06-18 15:51:20 +02:00
parent 1e52837931
commit 955b2ac1ba
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ const magicNumberMapInput = [
[/^I I/, 'image/tiff'],
[/^II*/, 'image/tiff'],
[/^MM\x00*/, 'image/tiff'],
[/^RIFF....WEBPVP8[LX ]/, 'image/webp'],
[/^RIFF....WEBPVP8[LX ]/s, 'image/webp'],
[/^\xF4\xFF\x6F/, 'image/webp2'],
[/^\x00\x00\x00 ftypavif\x00\x00\x00\x00/, 'image/avif'],
[/^\xff\x0a/, 'image/jxl'],