From bb08b80a80972c5da2d582c1c58f76d3f6226e25 Mon Sep 17 00:00:00 2001 From: bradleysigma Date: Mon, 2 Oct 2023 11:55:41 +1000 Subject: [PATCH] Update yelling.py --- uqcsbot/yelling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uqcsbot/yelling.py b/uqcsbot/yelling.py index abbe005..cdce9ea 100644 --- a/uqcsbot/yelling.py +++ b/uqcsbot/yelling.py @@ -166,7 +166,7 @@ def clean_text(self, message: str) -> str: ) # slightly more permissive version of discord's url regex, matches absolutely anything between http(s):// and whitespace - for url in re.findall(r"https?:\/\/[^\s]+", text, flags=re.UNICODE): + for url in re.findall(r"https?:\/\/\S+", text, flags=re.UNICODE): try: resp = urlopen(url) except (ValueError, URLError):