summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-07-25 01:14:02 -0400
committer无闻 <joe2010xtmf@163.com>2014-07-25 01:14:02 -0400
commit0f3414ec394a5ebdd7137c487e8945d5ad2fad58 (patch)
tree2c05c21079778acf44c83dd97564fef5b6d0c45d /public/js
parent2032080d86af81fe43c10a4506a413e2a848ab4d (diff)
parenteafa365453b6756272ced185f5d8060fb6bc5f07 (diff)
downloadgitea-0f3414ec394a5ebdd7137c487e8945d5ad2fad58.tar.gz
gitea-0f3414ec394a5ebdd7137c487e8945d5ad2fad58.zip
Merge pull request #315 from nuss-justin/issue/313
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 1b4fed7def..62482965e0 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;
}