wmllint: Extend [terrain_type] aliasof conversion to def_alias
This commit is contained in:
parent
8e7242927d
commit
181c64d70d
1 changed files with 2 additions and 2 deletions
|
@ -2689,9 +2689,9 @@ if __name__ == '__main__':
|
|||
for (old, new) in linechanges + mapchanges:
|
||||
line = line.replace(old, new)
|
||||
# Perform any base terrain string conversions needed in
|
||||
# [terrain_type] aliasof= and mvt_alias= attributes.
|
||||
# [terrain_type] aliasof=, mvt_alias=, and def_alias= attributes.
|
||||
if under("terrain_type"):
|
||||
match = re.search(r"\b(?:aliasof|mvt_alias)\s*=(.*)$", line)
|
||||
match = re.search(r"\b(?:aliasof|mvt_alias|def_alias)\s*=(.*)$", line)
|
||||
if match:
|
||||
aliases = match.group()
|
||||
for (old, new) in aliaschanges:
|
||||
|
|
Loading…
Add table
Reference in a new issue