diff --git a/monitor.py b/monitor.py index a0c15881..eca0d5b0 100644 --- a/monitor.py +++ b/monitor.py @@ -1603,6 +1603,13 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below :return: Our sane version of this suit's name. """ # TODO: Localisation ? + # Stage 1: Is it in `$_Class_Name;` form ? + if (m := re.fullmatch(r'^\$([^_]+)_Class([0-9]+)_Name$', name)): + n, c = m.group(1, 2) + name = n + + # Stage 2: Is it in `_class` form ? + # Stage 3: Is it in verbose ` Suit` form ? return name def suitloadout_store_from_event(self, entry) -> Tuple[int, int]: