From: Nicolas Coden Date: Thu, 16 Aug 2018 21:25:36 +0000 (+0200) Subject: feat: add support for "JPEG" picture in Interchange X-Git-Tag: v6.6.0~3^2~117^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d121b986cc3e9d21f1776d6e893085490784577;p=thirdparty%2Ffoundation%2Ffoundation-sites.git feat: add support for "JPEG" picture in Interchange --- 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';