mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-02 10:23:46 +00:00
Fix #313. Repair broken image extension detection regex.
This commit is contained in:
parent
c4eeb803e1
commit
eafa365453
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