Skip to content

Commit

Permalink
black -l 100
Browse files Browse the repository at this point in the history
Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
  • Loading branch information
Hritik14 committed Apr 19, 2021
1 parent 87122ef commit 209a853
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vulnerabilities/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ def split_markdown_front_matter(text: str) -> Tuple[str, str]:
front_matter = ""
body = text
text = text.replace("\r\n", "\n")
linezero,_, text = text.partition("---\n")
linezero, _, text = text.partition("---\n")

if not linezero: # nothing before first ---
front_matter,_, body = text.partition("---")
if not linezero: # nothing before first ---
front_matter, _, body = text.partition("---")

return front_matter, body

0 comments on commit 209a853

Please sign in to comment.