Skip to content

Commit

Permalink
[Tags] fix IMAGE_URL_REGEX
Browse files Browse the repository at this point in the history
Was previously matching gifv,
which can't be set as an embed's
image.
  • Loading branch information
noahkw committed May 20, 2023
1 parent b7a2942 commit 85d9fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from models.base import Base, PendulumDateTime
from util import safe_mention

IMAGE_URL_REGEX = r"https?:\/\/.*\.(jpe?g|png|gif)"
IMAGE_URL_REGEX = r"https?:\/\/.*\.(jpe?g|png|gif)$"


class Tag(Base):
Expand Down

0 comments on commit 85d9fdb

Please sign in to comment.