We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d706b5 + 473a89c commit 0e02f36Copy full SHA for 0e02f36
src/translator.js
@@ -117,7 +117,7 @@ export function getPostContent(content) {
117
if (shared.config.saveImages === 'scraped' || shared.config.saveImages === 'all') {
118
// writeImageFile() will save all content images to a relative /images
119
// folder so update references in post content to match
120
- content = content.replace(/(<img(?=\s)[^>]+?(?<=\s)src=")[^"]*?([^/"]+)("[^>]*>)/gi, '$1images/$2$3');
+ content = content.replace(/(<img(?=\s)[^>]+?(?<=\s)src=")[^"]*?([^/"]+?)(\?[^"]*)?("[^>]*>)/gi, '$1images/$2$4');
121
}
122
123
// preserve "more" separator, max one per post, optionally with custom label
0 commit comments