Skip to content

Commit 90a4e27

Browse files
committed
fix: detect substitution tag closing
1 parent 025fada commit 90a4e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/normalize_json/normalize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def translate(
208208
elif mapped_name in flat_obj_arr and flat_obj_arr[mapped_name] != None:
209209
initial_value = flat_obj_arr.get(mapped_name)
210210
break
211-
elif mapped_name[:2] == "{{":
211+
elif mapped_name[:2] == "{{" and mapped_name[:-2] == "}}":
212212
var_name = mapped_name[2:].replace(' ', '')[:-2]
213213
break
214214

0 commit comments

Comments
 (0)