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:
parent
eb03246c6b
commit
31bb4ff135
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue