remove while loop break
This commit is contained in:
2
ryuji.ts
2
ryuji.ts
@@ -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(":");
|
||||||
|
|||||||
Reference in New Issue
Block a user