tools (common/date_utils): update date parsing regex:
the regex `<timestamp> + 30 minutes` was not parsed correctly, this update should fix it.
This commit is contained in:
parent
85c1457054
commit
735822ab74
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ from libervia.backend.core.i18n import _
|
|||
|
||||
RELATIVE_RE = re.compile(
|
||||
r"\s*(?P<in>\bin\b)?"
|
||||
r"(?P<date>[^+-].+[^\s+-])?\s*(?P<direction>[-+])?\s*"
|
||||
r"(?P<date>[^+-][^+]+[^\s+-])?\s*(?P<direction>[-+])?\s*"
|
||||
r"\s*(?P<quantity>\d+)\s*"
|
||||
r"(?P<unit>(second|sec|s|minute|min|month|mo|m|hour|hr|h|day|d|week|w|year|yr|y))s?"
|
||||
r"(?P<ago>\s+ago)?\s*",
|
||||
|
|
|
|||
Loading…
Reference in a new issue