Fix heic/heif extension name case sensitivity
This commit is contained in:
@@ -32,8 +32,8 @@ export const TEXT_ATTACHMENT = stringToMIMEType('text/x-signal-story');
|
|||||||
export const isHeic = (value: string, fileName: string): boolean =>
|
export const isHeic = (value: string, fileName: string): boolean =>
|
||||||
value === 'image/heic' ||
|
value === 'image/heic' ||
|
||||||
value === 'image/heif' ||
|
value === 'image/heif' ||
|
||||||
fileName.endsWith('.heic') ||
|
fileName.toLowerCase().endsWith('.heic') ||
|
||||||
fileName.endsWith('.heif');
|
fileName.toLowerCase().endsWith('.heif');
|
||||||
export const isGif = (value: string): value is MIMEType =>
|
export const isGif = (value: string): value is MIMEType =>
|
||||||
value === 'image/gif';
|
value === 'image/gif';
|
||||||
export const isJPEG = (value: string): value is MIMEType =>
|
export const isJPEG = (value: string): value is MIMEType =>
|
||||||
|
Reference in New Issue
Block a user