diff options
author | Justin <nuss.justin@gmail.com> | 2014-07-24 23:19:21 +0200 |
---|---|---|
committer | Justin <nuss.justin@gmail.com> | 2014-07-24 23:19:21 +0200 |
commit | eafa365453b6756272ced185f5d8060fb6bc5f07 (patch) | |
tree | b3fa3f96b3756d05b05eb4773ec39b232cceaadc /public/js | |
parent | c4eeb803e1d77b563a3e6a5c67a78c38858d4e76 (diff) | |
download | gitea-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.js | 2 |
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; } |