mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-17 10:15:27 -04:00
fix: _parse_dt does not understand 'tonight' so event start/end breaks (#1488)
This commit is contained in:
@@ -338,8 +338,8 @@ def _parse_dt(s: str) -> datetime:
|
||||
return None
|
||||
return h, mn
|
||||
|
||||
# today/tomorrow/yesterday [at] TIME
|
||||
m = _re.match(r'^(today|tomorrow|tmrw|yesterday)(?:\s+at)?\s*(.*)$', lower)
|
||||
# today/tonight/tomorrow/yesterday [at] TIME
|
||||
m = _re.match(r'^(today|tonight|tomorrow|tmrw|yesterday)(?:\s+at)?\s*(.*)$', lower)
|
||||
if m:
|
||||
word, rest = m.group(1), m.group(2).strip()
|
||||
base = today
|
||||
|
||||
Reference in New Issue
Block a user