Update src/aki_prj23_transparenzregister/utils/data_extraction/unternehmensregister/transform.py

Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de>
This commit is contained in:
Tristan Nolde 2023-10-02 19:23:57 +02:00 committed by GitHub
parent ab26a7a01e
commit 84fb50bad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,7 +172,7 @@ def normalize_street(street: str) -> str:
return None
regex = r"(Str\.|Strasse)"
street = re.sub(regex, "Straße", street)
regex = r"str\."
regex = r"(str\.|strasse)"
street = re.sub(regex, "straße", street)
return street.strip()