We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 703b9b1 + ab8f358 commit ef2fa74Copy full SHA for ef2fa74
1 file changed
src/utils/file-utils.ts
@@ -29,7 +29,9 @@ export const getFileSuffix = (filename: string) => {
29
*/
30
export const isImage = (fileType: string): boolean => {
31
fileType = fileType.toLowerCase()
32
- return /(png|jpg|jpeg|gif|webp|awebp|avif|svg\+xml|svg|x-icon|vnd.microsoft.icon)$/.test(fileType)
+ return /(png|jpg|jpeg|gif|webp|awebp|avif|svg\+xml|svg|x-icon|vnd.microsoft.icon|ico)$/.test(
33
+ fileType
34
+ )
35
}
36
37
/**
0 commit comments