mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-11 18:56:14 +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 to certain image file types
|
||||||
.filter((attachment) => {
|
.filter((attachment) => {
|
||||||
const url = attachment.childValue('attachment_url');
|
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) => ({
|
.map((attachment) => ({
|
||||||
id: attachment.childValue('post_id'),
|
id: attachment.childValue('post_id'),
|
||||||
|
|||||||
Reference in New Issue
Block a user