spooder 4.2.2 → 4.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api.ts +1 -2
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -142,11 +142,10 @@ export function parse_template(template: string, replacements: Record<string, st
|
|
|
142
142
|
for (const loop_entry of loop_entries)
|
|
143
143
|
for (const index of indicies)
|
|
144
144
|
content_parts[index] = loop_entry;
|
|
145
|
-
|
|
146
|
-
i += loop_content.length + 6;
|
|
147
145
|
} else {
|
|
148
146
|
result += '{$' + buffer + '}' + loop_content + '{/for}';
|
|
149
147
|
}
|
|
148
|
+
i += loop_content.length + 6;
|
|
150
149
|
}
|
|
151
150
|
} else {
|
|
152
151
|
result += replacements[buffer] ?? '{$' + buffer + '}';
|