]> source.dussan.org Git - gitea.git/commitdiff
Fix #313. Repair broken image extension detection regex.
authorJustin <nuss.justin@gmail.com>
Thu, 24 Jul 2014 21:19:21 +0000 (23:19 +0200)
committerJustin <nuss.justin@gmail.com>
Thu, 24 Jul 2014 21:19:21 +0000 (23:19 +0200)
public/js/app.js

index 7ffcbd4a3e2a5edb3d2b2290ccd4d78b4db87f0c..01341d75671e173eb10d1b0918c8e17227fe615b 100644 (file)
@@ -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;
             }