Skip to content

fixes #1415 - #1597

Merged
beto-rodriguez merged 1 commit into
devfrom
fix-1415
Sep 15, 2024
Merged

fixes #1415#1597
beto-rodriguez merged 1 commit into
devfrom
fix-1415

Conversation

@beto-rodriguez

Copy link
Copy Markdown
Collaborator

fixes #1415

// start from -step to include the first separator/sub-separator
// and end at relativeEnd + step to include the last separator/sub-separator

for (var i = -step; i <= relativeEnd + step; i += step)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a safe alternative, start from -step and finish on end + step, there might be cases where 1 or 2 extra separators are rendered, but that should not impact performance.

@beto-rodriguez
beto-rodriguez merged commit 74d8e31 into dev Sep 15, 2024
@beto-rodriguez
beto-rodriguez deleted the fix-1415 branch September 15, 2024 18:49
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.

1 participant