From bb71779ed0fc15241836b3430d9bf365d3f341f9 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 18 Jan 2016 02:13:54 +0100 Subject: [PATCH 1/1] Improve URL parser regex. --- plomlombot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2