Skip to content

Commit d856efa

Browse files
authored
Update parser.py
1 parent 9b05216 commit d856efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrow/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class DateTimeParser(object):
4545
_TZ_NAME_RE = re.compile(r"\w[\w+\-/]+")
4646
# NOTE: timestamps cannot be parsed from natural language strings (by removing the ^...$) because it will
4747
# break cases like "15 Jul 2000" and a format list (see issue #447)
48-
_TIMESTAMP_RE = re.compile(r"^\d+\.?\d+$")
48+
_TIMESTAMP_RE = re.compile(r"^-?\d+\.?\d+$")
4949
_TIME_RE = re.compile(r"^(\d{2})(?:\:?(\d{2}))?(?:\:?(\d{2}))?(?:([\.\,])(\d+))?$")
5050

5151
_BASE_INPUT_RE_MAP = {

0 commit comments

Comments
 (0)