0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 18:04:30 +01:00

Fix #313. Repair broken image extension detection regex.

This commit is contained in:
Justin 2014-07-24 23:19:21 +02:00
parent c4eeb803e1
commit eafa365453

View file

@ -536,7 +536,7 @@ function initIssue() {
var over = function() { var over = function() {
var $this = $(this); var $this = $(this);
if ($this.text().match(/\.(png|jpg|jpeg|gif)$/i) == false) { if ((/\.(png|jpg|jpeg|gif)$/i).test($this.text()) == false) {
return; return;
} }