Fix regex matching for tags

This commit is contained in:
Zeva Rose 2022-08-12 17:22:34 +00:00
parent 995df0426f
commit 7ef091b005

View file

@ -23,7 +23,7 @@ invites = re.compile(
r"(?:https?://)?(?:www.)?(?:discord.(?:gg|io|me|li)|discord(?:app)?.com/invite)/([^\s/]+?)(?=\b)", # noqa: E501
flags=re.IGNORECASE,
)
tag_name = re.compile(r"$[\w\ \-]{1,40}^")
tag_name = re.compile(r"^[\w\ \-]{1,40}$")
class TagCog(Extension):