Skip to content

Commit

Permalink
Update single image regex in other location
Browse files Browse the repository at this point in the history
  • Loading branch information
7bitlyrus authored Oct 21, 2023
1 parent dcd4b5b commit f6bfcb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit f6bfcb0

Please sign in to comment.