From 4b7842d566aa64799b6719135ef27da289419929 Mon Sep 17 00:00:00 2001 From: Daniel Ruf Date: Fri, 17 Aug 2018 21:40:36 +0200 Subject: [PATCH] fix: remove extraneous regular expression in interchange, closes #11460 --- 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 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'; -- 2.47.2