From adcd7c672f6de77ea7de7adf68ed94b8a8e75d1f Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Wed, 16 Apr 2025 16:37:47 -0400 Subject: [PATCH] Allow cover images to have query string --- src/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.js b/src/parser.js index d538e3a..3363c05 100644 --- a/src/parser.js +++ b/src/parser.js @@ -122,7 +122,7 @@ function collectAttachedImages(allPostData) { // filter to certain image file types .filter((attachment) => { const url = attachment.childValue('attachment_url'); - return url && (/\.(gif|jpe?g|png|webp)$/i).test(url); + return url && (/\.(gif|jpe?g|png|webp)(\?|$)/i).test(url); }) .map((attachment) => ({ id: attachment.childValue('post_id'),