From 4e3dfc18f982b5723fbe086e325788d5c9edbf63 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 19 Aug 2023 12:16:26 -0300 Subject: thumbs: verify image paths w/o case sensitivity --- src/gen-thumbs.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/gen-thumbs.js b/src/gen-thumbs.js index 2d432e4b..82d5de3e 100644 --- a/src/gen-thumbs.js +++ b/src/gen-thumbs.js @@ -467,6 +467,9 @@ export function getExpectedImagePaths(mediaPath, {urls, wikiData}) { } export function checkMissingMisplacedMediaFiles(expectedImagePaths, extantImagePaths) { + expectedImagePaths = expectedImagePaths.map(path => path.toLowerCase()); + extantImagePaths = extantImagePaths.map(path => path.toLowerCase()); + return { missing: expectedImagePaths -- cgit 1.3.0-6-gf8a5