From f6bfcb07e4a8db49fdc207219469d3c83ba5eba4 Mon Sep 17 00:00:00 2001 From: Ian M <6500391+7bitlyrus@users.noreply.github.com> Date: Sat, 21 Oct 2023 13:14:22 -0400 Subject: [PATCH] Update single image regex in other location --- cogs/modmail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/modmail.py b/cogs/modmail.py index a90641e..dac5ba3 100644 --- a/cogs/modmail.py +++ b/cogs/modmail.py @@ -609,7 +609,7 @@ def _format_message_embed( embed.add_field(name=f'Attachment {x + 1}', value=attachments[x]) elif attachments and re.search( - r'\.(gif|jpe?g|tiff|png|webp)$', str(attachments[0]), re.IGNORECASE + r'\.(gif|jpe?g|tiff|png|webp)(\?[a-zA-Z0-9#-_]*)?$', str(attachments[0]), re.IGNORECASE ): # One attachment, image embed.set_image(url=attachments[0])