mrradix commited on
Commit
75090bf
·
verified ·
1 Parent(s): 50a12b7

Update utils/automation/templates.py

Browse files
Files changed (1) hide show
  1. utils/automation/templates.py +1 -1
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
- pattern = f"\\{\\{\\s*{var_name}\\s*\\}\\}"
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