Allow uppercase in URL domain

This commit is contained in:
Cadence Ember 2020-08-24 22:38:01 +12:00
parent 932f45c92d
commit f389bc1f48
1 changed files with 1 additions and 1 deletions

View File

@ -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()