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

String#{r,l,}strip: Make them work like in MRI #2612

Merged
merged 1 commit into from
Nov 16, 2023
Merged

String#{r,l,}strip: Make them work like in MRI #2612

merged 1 commit into from
Nov 16, 2023

Conversation

hmdne
Copy link
Member

@hmdne hmdne commented Nov 12, 2023

Before this patch, we have noticed that NBSP characters are stripped by those methods which is not what MRI does.

Those methods now fully follow MRI's behavior.

This fixes #2611

This PR has been sponsored by Ribose Inc.

Before this patch, we have noticed that NBSP characters are
stripped by those methods which is not what MRI does.

Those methods now fully follow MRI's behavior.

This PR has been sponsored by Ribose Inc.
hmdne added a commit to plurimath/plurimath-js that referenced this pull request Nov 12, 2023
- This cherry-picks opal/opal#2612
- In addition, rebase Opal tree to the latest release
@elia elia merged commit 025276e into master Nov 16, 2023
20 checks passed
@elia elia deleted the hmdne/strip branch November 16, 2023 09:25
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.

Bug: String#strip differs in handling the NBSP character
2 participants