Skip to content

Commit 7813013

Browse files
committed
chore: add more extension regex
1 parent e2df878 commit 7813013

File tree

1 file changed

+2
-2
lines changed
  • packages/uikit-utils/src/shared

1 file changed

+2
-2
lines changed

packages/uikit-utils/src/shared/file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ const EXTENSION_MIME_MAP = {
3939
} as Record<string, string>;
4040

4141
export const imageExtRegex = /jpeg|jpg|png|webp|gif/i;
42-
export const audioExtRegex = /3gp|aac|aax|act|aiff|flac|gsm|m4a|m4b|m4p|tta|wma|mp3|webm|wav/i;
43-
export const videoExtRegex = /mov|vod|mp4|avi/i;
42+
export const audioExtRegex = /3gp|aac|aax|act|aiff|flac|gsm|m4a|m4b|m4p|tta|wma|mp3|webm|wav|ogg/i;
43+
export const videoExtRegex = /mov|vod|mp4|avi|mpeg|ogv/i;
4444
export const getFileType = (extensionOrType: string) => {
4545
const lowerCased = extensionOrType.toLowerCase();
4646

0 commit comments

Comments
 (0)