From e16b4795082a0586b7c481fce1a0283ca810914d Mon Sep 17 00:00:00 2001 From: Yomguithereal Date: Fri, 21 Jul 2023 17:18:55 +0200 Subject: [PATCH] Removing t.me from shorteners Fix #188 --- ural/is_shortened_url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ural/is_shortened_url.py b/ural/is_shortened_url.py index 97535e4d..d41096d2 100644 --- a/ural/is_shortened_url.py +++ b/ural/is_shortened_url.py @@ -14,6 +14,7 @@ DOMAIN_STARTS_L_RE = re.compile(r"^/[0-9a-zA-Z]{3,}/?$") # Some domains taken from: https://github.com/timleland/url-shorteners +# NOTE: t.me is not a shortener, they return a 200 HTTP status SHORTENER_DOMAINS = [ "0rz.tw", "1-url.net", @@ -1031,7 +1032,6 @@ "t.co", "t.lh.com", "t.ly", - "t.me", "t1p.de", "t2m.io", "ta.gd",