Don't match invalid chars in URLs

dave/xdcc
dave 5 years ago
parent 2d463d9b99
commit 9b225b87cc

@ -79,7 +79,8 @@ class LinkTitler(ModuleBase):
# subreddits
# generic <title>
matches = re.compile(r'(https?://([a-zA-Z0-9_\-\.]+/([^ ]+)?))').findall(trailing)
matches = re.compile(r'(https?://([a-zA-Z0-9_\-\.]+/([A-Za-z0-9\-\._~:\/?#[]@!$&\'\(\)\*\+\,\;=]+)?))') \
.findall(trailing)
if matches:
done = []
for match in matches:

Loading…
Cancel
Save