diff --git a/src/kohlrahbi/docxfilefinder.py b/src/kohlrahbi/docxfilefinder.py index 7fe4b4b0..52034d6c 100644 --- a/src/kohlrahbi/docxfilefinder.py +++ b/src/kohlrahbi/docxfilefinder.py @@ -116,8 +116,8 @@ def filter_latest_version(groups: dict[str, list[Path]]) -> list[Path]: ( path for path in group_items - if "KonsolidierteLesefassungmitFehlerkorrekturen" in path.name - or "AußerordentlicheVeröffentlichung" in path.name + if "konsolidiertelesefassungmitfehlerkorrekturen" in path.name.lower() + or "außerordentlicheveröffentlichung" in path.name.lower() ), key=lambda path: (int(path.stem.split("_")[-1])), )