From bc3caaa2a0b82724cbf9e087d65874057f0b8363 Mon Sep 17 00:00:00 2001 From: clyates Date: Fri, 21 Mar 2014 10:41:49 +0000 Subject: [PATCH] Update foundation.interchange.js Use Zurb reggex --- js/foundation/foundation.interchange.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation/foundation.interchange.js b/js/foundation/foundation.interchange.js index 623904515..e5828f3e7 100644 --- a/js/foundation/foundation.interchange.js +++ b/js/foundation/foundation.interchange.js @@ -58,7 +58,7 @@ if (last_path == path) return; - if (/\.(jpg|jpeg|png|gif|tiff|bmp)$/i.test(path)) { + if (/\.(gif|jpg|jpeg|tiff|png)([?#].*)?/i.test(path)) { $(el).css('background-image', 'url('+path+')'); el.data('interchange-last-path', path); return trigger(path); -- 2.47.2