summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorJustin <nuss.justin@gmail.com>2014-07-24 23:19:21 +0200
committerJustin <nuss.justin@gmail.com>2014-07-24 23:19:21 +0200
commiteafa365453b6756272ced185f5d8060fb6bc5f07 (patch)
treeb3fa3f96b3756d05b05eb4773ec39b232cceaadc /public/js
parentc4eeb803e1d77b563a3e6a5c67a78c38858d4e76 (diff)
downloadgitea-eafa365453b6756272ced185f5d8060fb6bc5f07.tar.gz
gitea-eafa365453b6756272ced185f5d8060fb6bc5f07.zip
Fix #313. Repair broken image extension detection regex.
Diffstat (limited to 'public/js')
-rw-r--r--public/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/app.js b/public/js/app.js
index 7ffcbd4a3e..01341d7567 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;
}