Move localization parsing earlier than macro and compendium

This commit is contained in:
Michal Kunc 2021-11-18 23:39:05 +01:00
parent 3982850dd3
commit ec6a94f18e
Signed by: michal
GPG Key ID: 4CA5FB6559E0BDF8

View File

@ -36,9 +36,9 @@ def filter_vtt(text):
output = f"[LOCALIZATION LOOKUP ERROR - {m.group(0)}]"
return output
# Template
text = localize_re.sub(localize_return, text) # Has to be run before Compendium and Macro replacement
text = compendium_re.sub(compendium_return, text)
text = macro_re.sub(macro_return, text)
text = localize_re.sub(localize_return, text)
return text
@app.route("/")