Skip to content

Commit

Permalink
Invalid Date
Browse files Browse the repository at this point in the history
  • Loading branch information
riaf committed Dec 3, 2023
1 parent 15aa41c commit 6a3b59f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def parse_hugo_markdown(file_path):


def parse_date(date_str):
date_str = re.sub(r"\b[A-Z]{3}\b", "", date_str)

try:
return date_parser.parse(date_str)
except ValueError:
Expand Down

0 comments on commit 6a3b59f

Please sign in to comment.