no implicit {} in replacements

This commit is contained in:
Damien Elmes 2020-03-12 18:00:59 +10:00
parent 1b7417595e
commit 72bfedbed8

View File

@ -61,7 +61,7 @@ def transform_entry(entry):
def transform_string(msg):
for (old, new) in replacements:
msg = msg.replace(old, f"{{{new}}}")
msg = msg.replace(old, f"{new}")
# strip leading/trailing whitespace
return msg.strip()