Explorar el Código

Fix #313. Repair broken image extension detection regex.

Justin hace 10 años
padre
commit
eafa365453
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      public/js/app.js

+ 1 - 1
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;
             }