-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Labels
Milestone
Description
Environment
jruby-9.1.7.0 running on Linux 4.13.13-100.fc25.x86_64 #1 SMP Wed Nov 15 17:33:19 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Expected Behavior
The text matched by the part of the regex to the left of the \K is omitted from the overall regex match. Other than that the regex is matched normally from left to right.
$ irb
2.3.1 :001 > 'street'.match( /s\Kt/)
=> #<MatchData "t">
Actual Behavior
\K does not match anything when using JRuby.
$ irb
jruby-9.1.7.0 :001 > 'street'.match( /s\Kt/)
=> nil
Reactions are currently unavailable