Skip to content

Commit

Permalink
Make file name pattern matching case insensitive
Browse files Browse the repository at this point in the history
außerordentlicheVeröffenltichung should match Außerordentliche Veröffentlichtung
relates to Hochfrequenz/kohlrahbi#382
and is probably relaed to #122
  • Loading branch information
hf-kklein authored Jul 30, 2024
1 parent 806ac56 commit 5836dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migmose/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _extract_document_version(path: Path) -> str:
r"MIG(?:Strom|Gas)?-?informatorischeLesefassung?(.*?)"
r"(?:_|KonsolidierteLesefassung|-AußerordentlicheVeröffentlichung)"
)
matches = re.search(pattern, document_str)
matches = re.search(pattern, document_str, re.IGNORECASE)
if matches:
document_version = matches.group(1)
if document_version == "":
Expand Down

0 comments on commit 5836dbe

Please sign in to comment.