Added support for .ico files

This commit is contained in:
Paweł Malak
2021-11-20 14:18:42 +01:00
parent 089ace562a
commit 8941f8f2f4
6 changed files with 17 additions and 5 deletions

View File

@@ -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);
};