From d3b95ebff1c3490bd66789913674d1d4c6a6dba9 Mon Sep 17 00:00:00 2001 From: karxi Date: Sun, 13 Nov 2016 01:40:20 -0500 Subject: [PATCH] Made the "www." URL detection less grab-happy. It shouldn't keep trying to match on things like "Awwww...." now. --- parsetools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsetools.py b/parsetools.py index cc0feef..bc7c096 100644 --- a/parsetools.py +++ b/parsetools.py @@ -15,7 +15,7 @@ _gtag_begin = re.compile(r'(?i)') _ctag_end = re.compile(r'(?i)') _ctag_rgb = re.compile(r'\d+,\d+,\d+') _urlre = re.compile(r"(?i)(?:^|(?<=\s))(?:(?:https?|ftp)://|magnet:)[^\s]+") -_url2re = re.compile(r"(?i)www\.[^\s]+") +_url2re = re.compile(r"(?i)(?""")