From db58dce5aac40eb5333618179f8e7fd658712395 Mon Sep 17 00:00:00 2001 From: Abe Fehr Date: Thu, 26 Jan 2023 22:36:57 -0500 Subject: [PATCH] Add support for image/jpeg mimetype --- plugins/removeRasterImages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/removeRasterImages.js b/plugins/removeRasterImages.js index 8a3635318..9684597e9 100644 --- a/plugins/removeRasterImages.js +++ b/plugins/removeRasterImages.js @@ -21,7 +21,7 @@ exports.fn = () => { if ( node.name === 'image' && node.attributes['xlink:href'] != null && - /(\.|image\/)(jpg|png|gif)/.test(node.attributes['xlink:href']) + /(\.|image\/)(jpg|jpeg|png|gif)/.test(node.attributes['xlink:href']) ) { detachNodeFromParent(node, parentNode); }