enterprises: recognize "previously" as synonym for "formerly"

Enterprise-names containing "formerly" are handled differently, removing the former
name and only keeping the current one.

Some enterprise-names have changed their names using the synonym "previously",
which is currently not parsed in the same way. This commit modifies the script
to recognize both.
This commit is contained in:
Joris Peeraer 2023-01-14 15:54:45 +01:00 committed by Gilbert Ramirez
parent eb03246c6b
commit 31bb4ff135
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ ENTERPRISES_HEADER = """\
DECIMAL_PATTERN = r"^(\d+)"
# up to three spaces because of formatting errors in the source
ORGANIZATION_PATTERN = r"^ ?(\S.*)"
FORMERLY_PATTERN = r" \((formerly .*)\)"
FORMERLY_PATTERN = r" \(((formerly|previously) .*)\)"
def generate_enterprise_files(file_content):