From f389bc1f483816929d001b9231ae1db7075a7aa2 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Mon, 24 Aug 2020 22:38:01 +1200 Subject: [PATCH] Allow uppercase in URL domain --- tools/converters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/converters.py b/tools/converters.py index 49c13ec..8d46aa4 100644 --- a/tools/converters.py +++ b/tools/converters.py @@ -35,7 +35,7 @@ def combine_runs_html(runs): return result def add_html_links(text): - r_link = re.compile(r"""https?://[a-z0-9-]+(?:\.[a-z0-9-]+)+(?:/[^\s,<>)]*)?""") # it's okay, I guess. + r_link = re.compile(r"""https?://[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)+(?:/[^\s,<>)]*)?""") # it's okay, I guess. match = r_link.search(text) if match is not None: link = match.group()