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

Merged
enes merged 1 commits from 76-screenshot-validation into staging 2024-10-18 09:07:13 +00:00
Showing only changes of commit 4d9c68d741 - Show all commits

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