From ec6a94f18e6d37ff30be5e667dc315c211aa7198 Mon Sep 17 00:00:00 2001 From: Michal Kunc Date: Thu, 18 Nov 2021 23:39:05 +0100 Subject: [PATCH] Move localization parsing earlier than macro and compendium --- db_explorer/db_explorer/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_explorer/db_explorer/app.py b/db_explorer/db_explorer/app.py index 4ba8688..bc80340 100644 --- a/db_explorer/db_explorer/app.py +++ b/db_explorer/db_explorer/app.py @@ -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("/")