Skip to content
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

readline: fix unicode line separators being ignored #57591

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dario-piotrowicz
Copy link
Contributor

Fixes #22448

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. readline Issues and PRs related to the built-in readline module. labels Mar 22, 2025
@lpinca
Copy link
Member

lpinca commented Mar 22, 2025

I'm fine with this but it might be a breaking change.

@dario-piotrowicz
Copy link
Contributor Author

dario-piotrowicz commented Mar 22, 2025

I'm fine with this but it might be a breaking change.

Yes, I was thinking the same thing, but wanted to hear y'all thoughts on it 🙂
(and unfortunately until this gets merged today I think I'm too late for making it into v24 right? 😓 ... unless it gets postponed... 🤔 )

@dario-piotrowicz dario-piotrowicz requested a review from lpinca March 22, 2025 19:38
@lpinca
Copy link
Member

lpinca commented Mar 22, 2025

(PS: maybe I should just not compare it to the result of the regexp splitting but add the expected array in the test instead 🤔)

Yes, I think it would remove confusion and be more readable.

(and unfortunately until this gets merged today I think I'm too late for making it into v24 right? 😓 ... unless it #57057 (comment)... 🤔 )

Perhaps, but it does not matter much, it will eventually be added to v25, it will just have to wait longer.

remove confising comparison with regexp splits
@lpinca lpinca added the semver-major PRs that contain breaking changes and should be released in the next major version. label Mar 22, 2025
@lpinca
Copy link
Member

lpinca commented Mar 22, 2025

I added the semver-major label as a precaution. If you think it is not necessary, feel free to remove it.

Copy link

codecov bot commented Mar 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.23%. Comparing base (ffc1cf6) to head (9619d97).
Report is 98 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #57591   +/-   ##
=======================================
  Coverage   90.22%   90.23%           
=======================================
  Files         630      630           
  Lines      185149   185136   -13     
  Branches    36236    36238    +2     
=======================================
- Hits       167058   167049    -9     
- Misses      11035    11043    +8     
+ Partials     7056     7044   -12     
Files with missing lines Coverage Δ
lib/internal/readline/interface.js 96.97% <100.00%> (+0.01%) ⬆️

... and 35 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@anonrig anonrig added request-ci Add this label to start a Jenkins CI on a PR. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Mar 24, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 1, 2025
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. needs-ci PRs that need a full CI run. readline Issues and PRs related to the built-in readline module. semver-major PRs that contain breaking changes and should be released in the next major version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

readline: processing \u2028 and \u2029
6 participants