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

RegexpError with look-behind #1269

Closed
LFDM opened this issue Nov 26, 2013 · 3 comments
Closed

RegexpError with look-behind #1269

LFDM opened this issue Nov 26, 2013 · 3 comments
Milestone

Comments

@LFDM
Copy link

LFDM commented Nov 26, 2013

jruby (tested with 1.7.5 and 1.7.8) goes down when confronted with a lookbehind that includes another anchor.

SyntaxError: (RegexpError) invalid pattern in look-behind: /(?<=\bfoo)bar./

@LFDM
Copy link
Author

LFDM commented Nov 27, 2013

This didn't work in MRI 1.9 either, so it's Onigmo related.

@headius
Copy link
Member

headius commented Nov 27, 2013

Ok, given that 1.9 behaves the same way, this is unlikely to get fixed in the 1.7.x line. I'll mark this for JRuby 9k.

There's a fair bit of logic added for Onigmo that we do not have in Joni.

/cc @lopex

@enebo enebo modified the milestone: JRuby 9.0.0.0 Jul 14, 2015
@enebo enebo added this to the JRuby 9.1.8.0 milestone Feb 17, 2017
@enebo
Copy link
Member

enebo commented Feb 17, 2017

This appears to have been merged into a later version of Joni since I no longer see a syntax error for lookbehind syntax. Resolving.

@enebo enebo closed this as completed Feb 17, 2017
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

No branches or pull requests

3 participants