From 637067c62c414032085bd3f9d99c7ca2df2a3946 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 2 Jul 2019 14:15:49 +0100 Subject: [PATCH] url_validate() -> url_sanitise() --- src/utils/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/http.py b/src/utils/http.py index e65e1e23..2885ebee 100644 --- a/src/utils/http.py +++ b/src/utils/http.py @@ -7,7 +7,7 @@ from src import utils REGEX_URL = re.compile("https?://[A-Z0-9{}]+".format(re.escape("-._~:/%?#[]@!$&'()*+,;=")), re.I) # best-effort tidying up of URLs -def url_validate(url: str): +def url_sanitise(url: str): if url.endswith(")"): # trim ")" from the end only if there's not a "(" to match it # google.com/) -> google.com/