From eafa365453b6756272ced185f5d8060fb6bc5f07 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 24 Jul 2014 23:19:21 +0200 Subject: [PATCH] Fix #313. Repair broken image extension detection regex. --- public/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/app.js b/public/js/app.js index 7ffcbd4a3e2a..01341d75671e 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -536,7 +536,7 @@ function initIssue() { var over = function() { var $this = $(this); - if ($this.text().match(/\.(png|jpg|jpeg|gif)$/i) == false) { + if ((/\.(png|jpg|jpeg|gif)$/i).test($this.text()) == false) { return; }