From aa569acb8b4f1381b29bdfc17280d963408ee6b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= Date: Sat, 4 Jun 2022 08:05:17 +0300 Subject: [PATCH] Extend images regex to also match the appendix after file extension Some images have an appendix after the file extension making the builtin regex fail. An example would be something like https://example.com/foo.svg?size=800x600. --- circe-display-images.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circe-display-images.el b/circe-display-images.el index e31e585e..fc8cf981 100644 --- a/circe-display-images.el +++ b/circe-display-images.el @@ -74,7 +74,7 @@ See `enable-circe-display-images'." :group 'circe) (defcustom circe-display-images-image-regex - "\\(https?://[^ ]*?\\.\\(?:png\\|jpg\\|jpeg\\|svg\\|gif\\)\\)" + "\\(https?://[^ ]*?\\.\\(?:png\\|jpg\\|jpeg\\|svg\\|gif\\).*\\)" "Regex used to find images in channel messages. This regex needs to be greedy to match multiple images on the same line." :group 'circe-display-images