fix checkImageURL pattern

This commit is contained in:
nikk gitanes
2023-03-06 17:56:32 +03:00
parent 888e629216
commit 07bba5e9bd

View File

@@ -21,7 +21,7 @@ export const getMoviePosters = (movieName, language = 'en') => {
}
export const checkImageURL = async url => {
if (!url || !url.match(/.(jpg|jpeg|png|gif)$/i)) return false
if (!url || !url.match(/.(\.jpg|\.jpeg|\.png|\.gif|\.svg||\.webp).*$/i)) return false
return true
}