From 9f695de5a3609bfeaea45a99b464eaaab02e8cd4 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 Co-authored-by: Seth Falco --- plugins/removeRasterImages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/removeRasterImages.js b/plugins/removeRasterImages.js index 8a3635318..1a4a4a12e 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\/)(jpe?g|png|gif)/.test(node.attributes['xlink:href']) ) { detachNodeFromParent(node, parentNode); }