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
JRuby should support matching "grapheme clusters" (glyphs), which are constructed using mutliple Unicode codepoints.
glyphs = "\u{61 308 62}".scan(/\X/) # => ["ä", "b"]` glyphs.map{ |e| e.codepoints.map{ |f| f.to_s(16) } } #=> [["61", "308"], ["62"]]
glyphs = "\u{61 308 62}".scan(/\X/) # => ["a", "b"]` glyphs.map{ |e| e.codepoints.map{ |f| f.to_s(16) } } #=> [["61"], ["62"]]
\X
(?>\x0D\x0A|(?m:.))
AS::Multibyte
The text was updated successfully, but these errors were encountered:
Given that this does not appear to be fully baked in MRI 2.3 I think this is safe to defer to our 2.3-compatible release in 9.2.0.0.
Sorry, something went wrong.
This should work ootb with new joni
@lopex I forget our status here. We can move 9.1 to the new joni, yes?
Works in 9.1.16.0.
irb(main):001:0> glyphs = "\u{61 308 62}".scan(/\X/) # => ["ä", "b"]` (irb):1: warning: character class has duplicated range => ["ä", "b"] irb(main):002:0> glyphs.map{ |e| e.codepoints.map{ |f| f.to_s(16) } } #=> [["61", "308"], ["62"]] => [["61", "308"], ["62"]]
No branches or pull requests
JRuby should support matching "grapheme clusters" (glyphs), which are constructed using mutliple Unicode codepoints.
Expected Behavior (MRI)
Actual Behavior (JRuby)
Related Links
\X
to Onigmo: k-takata/Onigmo@dde0c43(?>\x0D\x0A|(?m:.))
AS::Multibyte
's unicode table rails/rails#26743The text was updated successfully, but these errors were encountered: