diff --git a/src/_data/movies.js b/src/_data/movies.js index 4f70a411..03a81548 100644 --- a/src/_data/movies.js +++ b/src/_data/movies.js @@ -9,7 +9,7 @@ module.exports = async function () { getExtraEntryFields: (feedEntry) => { const images = feedEntry['description']?.match(/]*src="[^"]*"[^>]*>/gm) || [] return { - image: images.length ? images.map((x) => x.replace(/.*src="([^"]*)".*/, '$1'))[0] : '', + image: images.length ? images.map((image) => image.replace(/.*src="([^"]*)".*/, '$1'))[0] : '', } }, }).catch((error) => {