remove while loop break

This commit is contained in:
jetstream0
2023-08-01 21:00:18 -07:00
parent db4f5fea22
commit 2d51d07823

View File

@@ -80,7 +80,7 @@ export class Renderer {
//let offset: number = 0; //I guess we don't need the offset //let offset: number = 0; //I guess we don't need the offset
while (true) { while (true) {
if (index === matches.length) break; if (index === matches.length) break;
if (_iterations > 200) return; //safeguard, todo: remove if (_iterations > 75000) console.log("Passed 75000 iterations while rendering, infinite loop?");
let match = matches[index]; let match = matches[index];
//[[ content ]] //[[ content ]]
let exp_parts = match[0].slice(3, match[0].length-3).split(":"); let exp_parts = match[0].slice(3, match[0].length-3).split(":");