From 86f4c7308b8f668f2a4404f75e88a3bd0ef14ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Wed, 21 May 2014 17:45:49 +0100 Subject: [PATCH] Image plugin: case insensitive regex Fixes #305 --- js/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plugins.js b/js/plugins.js index 8a243a6..e251a5d 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -211,7 +211,7 @@ plugins.factory('userPlugins', function() { if (url) { url = url[0]; /* Actually parse one url per message */ - if (url.match(/\.(png|gif|jpg|jpeg)$/)) { + if (url.match(/\.(png|gif|jpg|jpeg)$/i)) { /* A fukung.net URL may end by an image extension but is not a direct link. */ if (url.indexOf("^https?://fukung.net/v/") != -1) {