Skip to content

Fix line break handling in reduceWordsToLines function#143

Merged
Alteras1 merged 1 commit intomainfrom
fix/first-line-end-word-dupe
Apr 16, 2025
Merged

Fix line break handling in reduceWordsToLines function#143
Alteras1 merged 1 commit intomainfrom
fix/first-line-end-word-dupe

Conversation

@Alteras1
Copy link
Contributor

  • Added a condition to prevent unnecessary splicing when the current index is the last in the range.
  • Adjusted the splice parameters to correctly join words when reducing the initial segment of the array.

- Added a condition to prevent unnecessary splicing when the current index is the last in the range.
- Adjusted the splice parameters to correctly join words when reducing the initial segment of the array.
@Alteras1 Alteras1 merged commit e361019 into main Apr 16, 2025
3 checks passed
@Alteras1 Alteras1 deleted the fix/first-line-end-word-dupe branch April 16, 2025 22:28
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.

2 participants