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):