Browse Source

is_image: properly escape dot

Andrew Dolgov 2 years ago
parent
commit
96451cdf84
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/tt-irc.js

+ 1 - 1
js/tt-irc.js

@@ -1904,7 +1904,7 @@ function emoticons_popup() {
 }
 
 function is_image(src) {
-	if (src && src.match("\.(jpe?g|mp4|gifv?|png|bmp|webm)"))
+	if (src && src.match("\\.(jpe?g|mp4|gifv?|png|bmp|webm)"))
 		return true;
 
 	if (typeof is_image_local != "undefined") {