[14] fix weird template edge case

This commit is contained in:
meisnate12 2024-05-15 15:49:37 -04:00
parent eb7c305099
commit d7468c3062
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
2.0.1-develop13
2.0.1-develop14

View file

@ -514,7 +514,7 @@ class DataFile:
return actual_value
elif f"<<{var}" in str(og_txt):
final = str(og_txt).replace(f"<<{var}>>", str(actual_value)) if f"<<{var}>>" in str(og_txt) else str(og_txt)
if f"<<{var}" in final:
if f"<<{var}" in final and var not in variables:
match = re.search(f"<<({var}([+-])(\\d+))>>", final)
if match:
try: