From c722a1cada55340b1397a6be4dd39c165b70edef Mon Sep 17 00:00:00 2001 From: Athanasius Date: Tue, 23 Mar 2021 12:40:28 +0000 Subject: [PATCH] Extra paranoia: Don't pick up 'JournalAlpha...' for now It's possible FDev will use JournalAlpha, but forget to change the gameversion string. --- monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor.py b/monitor.py index 4050fc63..d0e7b08d 100644 --- a/monitor.py +++ b/monitor.py @@ -58,7 +58,7 @@ 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(Beta)?\.[0-9]{12}\.[0-9]{2}\.log$') def __init__(self): # TODO(A_D): A bunch of these should be switched to default values (eg '' for strings) and no longer be Optional