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 -v jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f Java HotSpot(TM) 64-Bit Server VM 25.40-b25 on 1.8.0_40-b26 +jit [darwin-x86_64]
$ uname -a Darwin rnevell-lt.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64
$ cat test.rb re = /a\g<0>*z/ if "aaazzz".match(re) puts "PASS" else puts "FAIL" exit 1 end
MRI allows recursive regular expressions groups with the \g<0> group which is particularly useful to match balanced expressions (ie parenthesis).
\g<0>
Attempting to compile a regular expression with \g<0> in jruby results in:
SyntaxError: (RegexpError) invalid group name <0>: /a\g<0>*z/
The text was updated successfully, but these errors were encountered:
fix for jruby/jruby#4077
e0323ee
test for jruby/jruby#4077
9148fca
Update to joni 2.1.11 snapshot for #4077.
f265ef2
Patch for joni appears to work. I've updated master to use it, and we'll release joni 2.1.11 along with 9.1.3.0.
Sorry, something went wrong.
7c081ff
@headius I don't necessarily care but I was realizing this will also enable 1.7.x if we ever update joni. Bonus feature!
No branches or pull requests
Environment
Test case
Expected Behavior
MRI allows recursive regular expressions groups with the
\g<0>
group which is particularly useful to match balanced expressions (ie parenthesis).Actual Behavior
Attempting to compile a regular expression with
\g<0>
in jruby results in:The text was updated successfully, but these errors were encountered: