mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 03:23:36 +00:00
Updated annotation regex
This commit is contained in:
parent
aee07ea234
commit
c39a96c3e5
@ -111,7 +111,7 @@ if __name__ == "__main__":
|
||||
data = re.sub(" \*(?: |)", "", data)
|
||||
|
||||
#annotation
|
||||
data = re.sub(r'@(?:begin|end|allow)\{(?:parent|tag|link|global|type)\}(?:\{.*\})',"",data)
|
||||
data = re.sub(r'@(?:begin|end|allow|remove)\{(?:parent|tag|link|global|type|key)\}(?:\{.*\})',"",data)
|
||||
return data
|
||||
|
||||
def get_value(data, key):
|
||||
|
Loading…
x
Reference in New Issue
Block a user