Skip to content

Commit

Permalink
Update single image attachment regex for authenticated attachment url…
Browse files Browse the repository at this point in the history
… parameters
  • Loading branch information
7bitlyrus authored Oct 21, 2023
1 parent d7fbebd commit dcd4b5b
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 @@ -181,7 +181,7 @@ async def _reply(self, interaction: discord.Interaction, content, attachment, an
)

if attachment and re.search(
r'\.(gif|jpe?g|tiff|png|webp)$', str(attachment), re.IGNORECASE
r'\.(gif|jpe?g|tiff|png|webp)(\?[a-zA-Z0-9#-_]*)?$', str(attachment), re.IGNORECASE
): # One attachment, image
embed.set_image(url=replyMessage.attachments[0].url)

Expand Down

0 comments on commit dcd4b5b

Please sign in to comment.