We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ce65f commit f801992Copy full SHA for f801992
pydis_core/utils/regex.py
@@ -3,8 +3,8 @@
3
import re
4
5
DISCORD_INVITE = re.compile(
6
- r"(https?:\/\/)?(www\.)?" # Optional http(s) and www.
7
- r"(discord(app)?)?" # Optional discord(app)
+ r"(https?:\/\/)?(www\.)?" # Optional http(s) and www.
+ r"(\B|discord(app)?)" # Optional discord(app)
8
r"([.,]|dot)" # Various characters to cover dots
9
r"("
10
r"(gg|me)" # TLDs that embed within discord
0 commit comments