mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 16:14:12 +00:00
wmlscope: fixed a bug that caused UMC map paths to not be found
Due to the new regex used, the tilde before UMC paths was now collected but never removed from the paths.
This commit is contained in:
parent
6163285ae0
commit
fca4795f30
@ -778,8 +778,11 @@ class CrossRef:
|
||||
for pattern in split_filenames(match):
|
||||
for name in expand_square_braces(pattern):
|
||||
# Catches maps that look like macro names.
|
||||
if (name.endswith(".map") or name.endswith(".mask")) and name[0] == '{':
|
||||
name = name[1:]
|
||||
if (name.endswith(".map") or name.endswith(".mask")):
|
||||
if name.startswith("{~"):
|
||||
name = name[2:]
|
||||
elif name.startswith("{"):
|
||||
name = name[1:]
|
||||
if os.sep == "\\":
|
||||
name = name.replace("/", "\\")
|
||||
key = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user