From 2d51d07823371b97130ca7b6f9760845ff17f6cd Mon Sep 17 00:00:00 2001 From: jetstream0 <49297268+jetstream0@users.noreply.github.com> Date: Tue, 1 Aug 2023 21:00:18 -0700 Subject: [PATCH] remove while loop break --- ryuji.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryuji.ts b/ryuji.ts index 0fee5d6..ccfbce1 100644 --- a/ryuji.ts +++ b/ryuji.ts @@ -80,7 +80,7 @@ export class Renderer { //let offset: number = 0; //I guess we don't need the offset while (true) { 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]; //[[ content ]] let exp_parts = match[0].slice(3, match[0].length-3).split(":");