Skip to content

Comments

fix: use parsed integer num instead of rawNum in repeat helper loop#128

Open
sh1vam31 wants to merge 1 commit intojoplin:masterfrom
sh1vam31:fix/repeat-helper-use-parsed-num_#124
Open

fix: use parsed integer num instead of rawNum in repeat helper loop#128
sh1vam31 wants to merge 1 commit intojoplin:masterfrom
sh1vam31:fix/repeat-helper-use-parsed-num_#124

Conversation

@sh1vam31
Copy link

@sh1vam31 sh1vam31 commented Feb 20, 2026

Fixes #124

In src/helpers/repeat.ts, the repeat helper was using rawNum (a raw string) instead of num (the parsed integer) in the for loop condition.

After fix :
image

Problem

// Bug: rawNum is a string
for (let i = 0; i < rawNum; i++) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

repeat helper uses unparsed rawNum instead of parseInt-parsed num in loop condition

1 participant