Skip to content

Commit 730cd3d

Browse files
agnikagnik
authored andcommitted
fix: use parsed number instead of raw string in repeat helper loop
1 parent 76fe8c7 commit 730cd3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers/repeat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export const repeatHelper: HelperConstructorBlock = (ctx) => {
99
}
1010

1111
let ret = "";
12-
for (let i = 0; i < rawNum; i++) {
13-
ret += options.fn({ ...this, "repeat_index": i });
12+
for (let i = 0; i < num; i++) {
13+
ret += options.fn({ ...this, repeat_index: i });
1414
}
1515
return ret;
1616
});

0 commit comments

Comments
 (0)