Regexp.last_match broken inside Enumerable's grep block
-------------------------------------------------------
Key: JRUBY-2489
URL: http://jira.codehaus.org/browse/JRUBY-2489
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.1, JRuby 1.1+
Reporter: Martin Krauskopf
{code}
x = ["fa"]
p = /^f(.+)$/
#puts x[0], x[0] =~ p
p x.grep(p){|z| Regexp.last_match(1)}
{code}
Ruby => ["a"]
JRuby => [nil]
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email