Skip to content

Conversation

@dom-baur
Copy link
Contributor

@dom-baur dom-baur commented Aug 26, 2025

Add feature splitLines for issue #29

@dom-baur dom-baur requested a review from a team as a code owner August 26, 2025 13:04
@pkg-pr-new
Copy link

pkg-pr-new bot commented Aug 26, 2025

Open in StackBlitz

npm i https://pkg.pr.new/neolution-ch/javascript-utils/@neolution-ch/javascript-utils@76

commit: 60438e5

@neoscie neoscie requested a review from Copilot August 26, 2025 13:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new string utility function splitLine that splits strings at line breaks, supporting different line ending formats (LF, CR, CRLF).

  • Added splitLine function to handle cross-platform line break splitting
  • Comprehensive test coverage for various line ending scenarios
  • Updated changelog to document the new feature

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/lib/string.ts Implements the new splitLine function with regex pattern for line breaks
src/lib/string.spec.ts Adds comprehensive test cases covering single line, multiple line endings, and edge cases
CHANGELOG.md Documents the addition of the new string utility function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@dom-baur dom-baur changed the title Add string utility functions: splitLine Add string utility functions: splitLines Sep 8, 2025
@github-actions
Copy link

github-actions bot commented Sep 9, 2025

Package Line Rate Branch Rate Complexity Health
main 100% 100% 0
Summary 100% (198 / 198) 100% (100 / 100) 0

@dom-baur dom-baur requested a review from drebrez September 9, 2025 08:24
@drebrez drebrez merged commit 2e765c2 into neolution-ch:main Sep 9, 2025
5 checks passed
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