]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
feat: add support for "JPEG" picture in Interchange
authorNicolas Coden <nicolas@ncoden.fr>
Thu, 16 Aug 2018 21:25:36 +0000 (23:25 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Thu, 16 Aug 2018 21:25:36 +0000 (23:25 +0200)
js/foundation.interchange.js

index d298c2bfc637a570b8e84f0bcf018dc3f57bf0fe..46db2f004ea8f1a490792029609417f8caa7e71c 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|jpg|jpeg|png|svg|tiff)([?#].*)?/i))
+      else if (path.match(/\.(gif|jpe?g|jpeg|png|svg|tiff)([?#].*)?/i))
         type = 'background';
       else
         type = 'html';