mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix checkImageURL pattern
This commit is contained in:
@@ -21,7 +21,7 @@ export const getMoviePosters = (movieName, language = 'en') => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const checkImageURL = async url => {
|
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
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user