Skip to content

Split CRLF as one separator in String.lines - #2341

Draft
oxura wants to merge 1 commit into
bendlang:mainfrom
oxura:string-lines-crlf-20261124
Draft

oxura wants to merge 1 commit into
bendlang:mainfrom
oxura:string-lines-crlf-20261124

Conversation

@oxura

@oxura oxura commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

String.lines split on \n but left \r at the end of each Windows line. It now consumes CRLF together, without removing standalone \r or changing the trailing empty line. String.split is unchanged.

The new fixture gave the expected output in the interpreter, Node 22 and the Linux native build. I could not reach the mini cluster.

- Keep standalone carriage returns and preserve the trailing empty line.
- Exercise mixed line endings on the interpreter, JavaScript and Linux native lanes.
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