From af9e33061bdcef20efbac5758485945f8a18f8d5 Mon Sep 17 00:00:00 2001 From: Dijana Vrbanec <127301388+vrbanecd@users.noreply.github.com> Date: Fri, 1 Mar 2024 10:49:02 +0100 Subject: [PATCH] Update issuers.py --- flaat/issuers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaat/issuers.py b/flaat/issuers.py index 51594fb..8b20aa7 100644 --- a/flaat/issuers.py +++ b/flaat/issuers.py @@ -22,7 +22,7 @@ def is_url(string): """Return True if parameter is a URL, otherwise False""" regex = re.compile( - r"^(?:http|ftp)s?://" # http:// or https:// + r"^(?:http|ftp)s?://" # http:// or https:// r"(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?)(?:\.[A-Z]{2,6}|[A-Z0-9-]{2,})*\.?|\d{1,3}\." # domain... r"localhost|" # localhost... r"\d{1,3}\.\d{1,3}\.\d{1,3})" # ...or ip