Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
fix black
  • Loading branch information
ruppde authored and MatejKastak committed Oct 23, 2023
1 parent 4505ba1 commit e134208
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions yls/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,10 @@ def is_hash(i: str) -> bool:
We accept upper and lowercase hashes"""
return (
re.fullmatch("[0-9a-f]{32}", i, flags=re.IGNORECASE) or
re.fullmatch("[0-9a-f]{40}", i, flags=re.IGNORECASE) or
re.fullmatch("[0-9a-f]{64}", i, flags=re.IGNORECASE)
) is not None
re.fullmatch("[0-9a-f]{32}", i, flags=re.IGNORECASE)
or re.fullmatch("[0-9a-f]{40}", i, flags=re.IGNORECASE)
or re.fullmatch("[0-9a-f]{64}", i, flags=re.IGNORECASE)
) is not None


def markdown_content(value: str) -> lsp_types.MarkupContent:
Expand Down

0 comments on commit e134208

Please sign in to comment.