]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: remove extraneous regular expression in interchange, closes #11460 11461/head
authorDaniel Ruf <daniel@daniel-ruf.de>
Fri, 17 Aug 2018 19:40:36 +0000 (21:40 +0200)
committerDaniel Ruf <daniel@daniel-ruf.de>
Fri, 17 Aug 2018 19:40:36 +0000 (21:40 +0200)
js/foundation.interchange.js

index 154c61eb69fe5598c3688387f8285fff44fde4b4..c06c10dac540942a9ee562c82ad6a6d206dc7735 100644 (file)
@@ -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';