diff options
author | Maksim Andrianov <maksimandrianov1@gmail.com> | 2019-05-08 19:15:01 +0300 |
---|---|---|
committer | Maksim Andrianov <maksimandrianov1@gmail.com> | 2019-05-08 19:15:01 +0300 |
commit | 25b8d874f6d505dca6ab48292cbc7f7fa2c90507 (patch) | |
tree | 7bbc508e3a78e48b37d3a1de9f1042493bffa5dc /tools | |
parent | 1dfde9a6a167d85f0966dd3d34f9a30749c2c7e0 (diff) |
Fixed regex hierarchy_to_countries.py
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/python/post_generation/hierarchy_to_countries.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/post_generation/hierarchy_to_countries.py b/tools/python/post_generation/hierarchy_to_countries.py index c5683b6252..a7348e4608 100755 --- a/tools/python/post_generation/hierarchy_to_countries.py +++ b/tools/python/post_generation/hierarchy_to_countries.py @@ -126,7 +126,7 @@ def hierarchy_to_countries(old_vs_new_csv_path, borders_vs_osm_csv_path, last = None with open(hierarchy_path) as f: for line in f: - m = re.match("( *).+", line) + m = re.match("( *)(.+)", line) assert m depth = len(m.group(1)) if last is not None: |