From 1d121b986cc3e9d21f1776d6e893085490784577 Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Thu, 16 Aug 2018 23:25:36 +0200 Subject: [PATCH] feat: add support for "JPEG" picture in Interchange --- js/foundation.interchange.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation.interchange.js b/js/foundation.interchange.js index d298c2bfc..46db2f004 100644 --- a/js/foundation.interchange.js +++ b/js/foundation.interchange.js @@ -169,7 +169,7 @@ class Interchange extends Plugin { if (type === 'auto') { if (this.$element[0].nodeName === 'IMG') type = 'src'; - else if (path.match(/\.(gif|jpg|jpeg|png|svg|tiff)([?#].*)?/i)) + else if (path.match(/\.(gif|jpe?g|jpeg|png|svg|tiff)([?#].*)?/i)) type = 'background'; else type = 'html'; -- 2.47.2