Skip to content

Commit

Permalink
Update yelling.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleysigma committed Oct 2, 2023
1 parent cd5b338 commit bb08b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uqcsbot/yelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit bb08b80

Please sign in to comment.