We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
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
In MRI /\s/ matches NBSP (no-break space) in Windows-1252 encoded strings. In JRuby it does not.
/\s/
MRI:
"\xA0".force_encoding(Encoding::Windows_1252) =~ /\s/ # => 0
JRuby:
"\xA0".force_encoding(Encoding::Windows_1252) =~ /\s/ # => nil
Note though that in MRI it doesn't match NBSP in UTF-8 encoded strings:
"\u00A0" =~ /\s/ # => nil
In this case JRuby behaves the same.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Expected Behavior
In MRI
/\s/
matches NBSP (no-break space) in Windows-1252 encoded strings. In JRuby it does not.MRI:
Actual Behavior
JRuby:
Note though that in MRI it doesn't match NBSP in UTF-8 encoded strings:
In this case JRuby behaves the same.
The text was updated successfully, but these errors were encountered: