(Regexp Regression) JRuby with Joni calculates String#rindex incorrectly in 
some cases
--------------------------------------------------------------------------------------

                 Key: JRUBY-1656
                 URL: http://jira.codehaus.org/browse/JRUBY-1656
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.x
         Environment: Latest JRuby 1.1b from trunk.
            Reporter: Vladimir Sizikov
            Assignee: Thomas E Enebo


This is funny:

("c" + "x" * 100).rindex(/cx/) ==> nil

but

("c" + "x" * 99).rindex(/cx/) ==> 0
(the only difference between two strings is 99 'x'es instead of 100)

In MRI, and in earler JRuby without Joni, the result is always 0.


-- 
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

Reply via email to