diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-08-19 12:16:26 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-08-19 12:24:06 -0300 |
commit | 4e3dfc18f982b5723fbe086e325788d5c9edbf63 (patch) | |
tree | 2569b9b29903843e1b4e3fe07f6fc811d4a80423 | |
parent | 9e4a20224a2cc005775cb99b5ea888c253e48e3a (diff) |
thumbs: verify image paths w/o case sensitivity
-rw-r--r-- | src/gen-thumbs.js | 3 |
1 files changed, 3 insertions, 0 deletions
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 |