mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-06-05 15:09:59 +09:00
Allow cover images to have query string
This commit is contained in:
+1
-1
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user