Skip to content

Commit 0f3414e

Browse files
committed
Merge pull request #315 from nuss-justin/issue/313
Fix #313. Repair broken image extension detection regex.
2 parents 2032080 + eafa365 commit 0f3414e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ function initIssue() {
536536
var over = function() {
537537
var $this = $(this);
538538

539-
if ($this.text().match(/\.(png|jpg|jpeg|gif)$/i) == false) {
539+
if ((/\.(png|jpg|jpeg|gif)$/i).test($this.text()) == false) {
540540
return;
541541
}
542542

0 commit comments

Comments
 (0)