RegexpError with look-behind #1269

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

Comments

Projects
None yet
3 participants
@LFDM

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

This comment has been minimized.

Show comment
Hide comment
@LFDM

LFDM Nov 27, 2013

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

LFDM commented Nov 27, 2013

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

@headius

This comment has been minimized.

Show comment
Hide comment
@headius

headius Nov 27, 2013

Member

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

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

This comment has been minimized.

Show comment
Hide comment
@enebo

enebo Feb 17, 2017

Member

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

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 Feb 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment