WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 93ce65f

Browse files
committed
Escape backslashes in invite regex
1 parent 3b7f09e commit 93ce65f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydis_core/utils/regex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import re
44

55
DISCORD_INVITE = re.compile(
6-
r"(https?://)?(www\.)?" # Optional http(s) and www.
6+
r"(https?:\/\/)?(www\.)?" # Optional http(s) and www.
77
r"(discord(app)?)?" # Optional discord(app)
88
r"([.,]|dot)" # Various characters to cover dots
99
r"("

0 commit comments

Comments
 (0)