fix(image-validation): add more image types to regex

This commit is contained in:
enes 2024-10-17 18:06:23 +02:00
parent 90efd672cd
commit 4d9c68d741

View File

@ -56,7 +56,7 @@ export const isValidUrl = (url: string) => {
}
export const isValidImageUrl = (url: string) => {
const regex = /\.(jpeg|jpg|gif|png)$/
const regex = /\.(jpeg|jpg|gif|png|ico|bmp|webp|avif|jxl)$/
return regex.test(url)
}