From: Daniel Ruf Date: Fri, 17 Aug 2018 19:40:36 +0000 (+0200) Subject: fix: remove extraneous regular expression in interchange, closes #11460 X-Git-Tag: v6.6.0~3^2~116^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11461%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: remove extraneous regular expression in interchange, closes #11460 --- diff --git a/js/foundation.interchange.js b/js/foundation.interchange.js index 154c61eb6..c06c10dac 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|jpe?g|jpeg|png|svg|tiff)([?#].*)?/i)) + else if (path.match(/\.(gif|jpe?g|png|svg|tiff)([?#].*)?/i)) type = 'background'; else type = 'html';