Skip to content

Add string utility functions: splitLines - #76

Merged
drebrez merged 11 commits into
neolution-ch:mainfrom
dom-baur:feature/splitline
Sep 9, 2025
Merged

drebrez merged 11 commits into
neolution-ch:mainfrom
dom-baur:feature/splitline

Conversation

@dom-baur

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

Copy link
Copy Markdown
Contributor

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

pkg-pr-new Bot commented Aug 26, 2025 •

Copy link
Copy Markdown

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread src/lib/string.spec.ts Outdated
Comment thread src/lib/string.ts Outdated
Comment thread src/lib/string.ts Outdated
Comment thread src/lib/string.spec.ts Outdated
Comment thread src/lib/string.spec.ts Outdated
Comment thread src/lib/string.ts Outdated
@dom-baur dom-baur changed the title Add string utility functions: splitLine Add string utility functions: splitLines Sep 8, 2025
Comment thread src/lib/string.ts Outdated
@github-actions

github-actions Bot commented Sep 9, 2025

Copy link
Copy Markdown
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.

3 participants