-
Notifications
You must be signed in to change notification settings - Fork 7
Add string utility functions: splitLines #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
commit: |
There was a problem hiding this 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
splitLinefunction 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.
|
Add feature splitLines for issue #29