mirror of
https://git.sr.ht/~cadence/NewLeaf
synced 2024-11-21 23:27:29 +00:00
Allow uppercase in URL domain
This commit is contained in:
parent
932f45c92d
commit
f389bc1f48
@ -35,7 +35,7 @@ def combine_runs_html(runs):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
def add_html_links(text):
|
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)
|
match = r_link.search(text)
|
||||||
if match is not None:
|
if match is not None:
|
||||||
link = match.group()
|
link = match.group()
|
||||||
|
Loading…
Reference in New Issue
Block a user