fix(image-validation): add more image types to regex #82
@ -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