Skip to content

Commit

Permalink
improve auto_url
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Sep 4, 2024
1 parent 69d3dfa commit 2ed8f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/tmpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def replace_url_query(ctx: Context, **kwargs: Any) -> str:
__url_pattern = re.compile(
r"(https?://" # http:// or https://
r"[^/]+" # netloc
r"(?:/[^(),。() \s]+)?)", # path#hash
r"(?:/[^(),。() \r\n\s]*)?)", # path#hash
re.IGNORECASE,
)

Expand Down

0 comments on commit 2ed8f93

Please sign in to comment.