Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
added utils aggregate to improve code design
  • Loading branch information
NoBitLeft committed Jul 22, 2021
commit d94e0c5f3a85af1af44a824357be4868f201b7e2
6 changes: 3 additions & 3 deletions app/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ def is_date(string, fuzzy=False):
"""
Return whether the string can be interpreted as a date.
- https://stackoverflow.com/a/25341965/7120095

:param string: str, string to check for date
:param fuzzy: bool, ignore unknown tokens in string if True
"""

try:
parse(string, fuzzy=fuzzy)
return True
except ValueError:
return False
return False