From 64085621b7903c2d43a1448f0afeb94353c830e7 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Wed, 26 Apr 2023 17:41:30 -0700 Subject: [PATCH] chore: make mapped var name clearer --- src/_data/movies.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {