From: Christian Heller Date: Mon, 18 Jan 2016 01:13:54 +0000 (+0100) Subject: Improve URL parser regex. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/ledger?a=commitdiff_plain;h=bb71779ed0fc15241836b3430d9bf365d3f341f9;p=plomlombot-irc.git Improve URL parser regex. --- diff --git a/plomlombot.py b/plomlombot.py index c1c2308..d6feb93 100755 --- a/plomlombot.py +++ b/plomlombot.py @@ -100,7 +100,7 @@ def lineparser_loop(io, nickname): def act_on_privmsg(tokens): def url_check(msg): - matches = re.findall("(https?://[^\s]+)", msg) + matches = re.findall("(https?://[^\s>]+)", msg) for i in range(len(matches)): url = matches[i] try: