Fix QOI magic number

This commit is contained in:
robo-mop
2023-10-18 03:28:56 +05:30
parent 37cc236307
commit 71f341923a

View File

@@ -103,7 +103,7 @@ const magicNumberMapInput = [
[/^\x00\x00\x00 ftypavif\x00\x00\x00\x00/, 'image/avif'], [/^\x00\x00\x00 ftypavif\x00\x00\x00\x00/, 'image/avif'],
[/^\xff\x0a/, 'image/jxl'], [/^\xff\x0a/, 'image/jxl'],
[/^\x00\x00\x00\x0cJXL \x0d\x0a\x87\x0a/, 'image/jxl'], [/^\x00\x00\x00\x0cJXL \x0d\x0a\x87\x0a/, 'image/jxl'],
[/^QOI/, 'image/qoi'], [/^qoif/, 'image/qoi'],
] as const; ] as const;
export type ImageMimeTypes = typeof magicNumberMapInput[number][1]; export type ImageMimeTypes = typeof magicNumberMapInput[number][1];