mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 20:59:31 +01:00
Merge pull request #315 from nuss-justin/issue/313
Fix #313. Repair broken image extension detection regex.
This commit is contained in:
commit
0f3414ec39
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue