fix(image-validation): add more image types to regex
This commit is contained in:
parent
90efd672cd
commit
4d9c68d741
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user