Skip to content

Commit

Permalink
monitor: Change Journal file regex, because Frontier are being a PITA
Browse files Browse the repository at this point in the history
They've changed it to an ISO8601 style full date/time now.  But the Odyssey
client still uses the old format.
  • Loading branch information
Athanasius committed Mar 15, 2022
1 parent 248a34d commit e17a40a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
_POLL = 1 # Polling is cheap, so do it often
_RE_CANONICALISE = re.compile(r'\$(.+)_name;')
_RE_CATEGORY = re.compile(r'\$MICRORESOURCE_CATEGORY_(.+);')
_RE_LOGFILE = re.compile(r'^Journal(Alpha|Beta)?\.[0-9]{12}\.[0-9]{2}\.log$')
_RE_LOGFILE = re.compile(r'^Journal(Alpha|Beta)?\.[0-9]{2,4}(-)?[0-9]{2}(-)?[0-9]{2}(T)?[0-9]{2}[0-9]{2}[0-9]{2}'
r'\.[0-9]{2}\.log$')
_RE_SHIP_ONFOOT = re.compile(r'^(FlightSuit|UtilitySuit_Class.|TacticalSuit_Class.|ExplorationSuit_Class.)$')

def __init__(self) -> None:
Expand Down

0 comments on commit e17a40a

Please sign in to comment.