Fix regex matching for tags
This commit is contained in:
parent
995df0426f
commit
7ef091b005
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ invites = re.compile(
|
||||||
r"(?:https?://)?(?:www.)?(?:discord.(?:gg|io|me|li)|discord(?:app)?.com/invite)/([^\s/]+?)(?=\b)", # noqa: E501
|
r"(?:https?://)?(?:www.)?(?:discord.(?:gg|io|me|li)|discord(?:app)?.com/invite)/([^\s/]+?)(?=\b)", # noqa: E501
|
||||||
flags=re.IGNORECASE,
|
flags=re.IGNORECASE,
|
||||||
)
|
)
|
||||||
tag_name = re.compile(r"$[\w\ \-]{1,40}^")
|
tag_name = re.compile(r"^[\w\ \-]{1,40}$")
|
||||||
|
|
||||||
|
|
||||||
class TagCog(Extension):
|
class TagCog(Extension):
|
||||||
|
|
Loading…
Add table
Reference in a new issue