monitor: Change Journal file regex, because Frontier are being a PITA

They've changed it to an ISO8601 style full date/time now.  But the Odyssey
client still uses the old format.
This commit is contained in:
Athanasius committed 2022-03-15 13:56:48 +00:00
1 parent 248a34d24c
commit e17a40aaff
1 file changed
+2 -1
+2 -1
View File
@@ -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: