mirror of
https://github.com/pawelmalak/flame.git
synced 2026-03-09 14:03:11 +08:00
Added support for .ico files
This commit is contained in:
@@ -13,7 +13,7 @@ export const isUrl = (data: string): boolean => {
|
||||
};
|
||||
|
||||
export const isImage = (data: string): boolean => {
|
||||
const regex = /.(jpeg|jpg|png)$/i;
|
||||
const regex = /.(jpeg|jpg|png|ico)$/i;
|
||||
|
||||
return regex.test(data);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user