Update utils/automation/templates.py
Browse files
utils/automation/templates.py
CHANGED
@@ -94,7 +94,7 @@ class Template:
|
|
94 |
# Replace variables in string
|
95 |
result = content
|
96 |
for var_name, var_value in variables.items():
|
97 |
-
|
98 |
result = re.sub(pattern, str(var_value), result)
|
99 |
return result
|
100 |
|
|
|
94 |
# Replace variables in string
|
95 |
result = content
|
96 |
for var_name, var_value in variables.items():
|
97 |
+
pattern = r"\{\{\s*" + var_name + r"\s*\}\}"
|
98 |
result = re.sub(pattern, str(var_value), result)
|
99 |
return result
|
100 |
|