Skip to content

Commit

Permalink
style: black
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed May 15, 2024
1 parent 2dbce27 commit 1c4288d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x_notes/notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def urlize(inp: str) -> str:
def format_url(match: re.Match) -> str:
url = match.group()
pr = urlparse(url)
relative_url = pr._replace(scheme='', netloc='').geturl()
relative_url = pr._replace(scheme="", netloc="").geturl()
if len(relative_url) > 15:
abbrev_url = f"{pr.scheme}://{pr.netloc}{relative_url[:15]}…"
else:
Expand Down

0 comments on commit 1c4288d

Please sign in to comment.