From 5f3ac46907a6eca27be8c4b7bd8be69a009370c9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 31 Jul 2019 17:24:06 -0700 Subject: handle 'ttp://' URL prefix corner case --- chocula.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chocula.py') diff --git a/chocula.py b/chocula.py index 3d77fe4..0125cb9 100755 --- a/chocula.py +++ b/chocula.py @@ -359,6 +359,8 @@ def parse_url(url): return None if url.startswith('www.'): url = "http://" + url + if url.startswith('ttp://') or url.startswith('ttps://'): + url = "h" + url url.replace('Http://', 'http://') url = str(urlcanon.semantic_precise(url)) -- cgit v1.2.3