Issue #1882 has been updated by Kurt  Stephens.


+    if (!rb_reg_equal(RMATCH(match1)->regexp, RMATCH(match2)->regexp)) return Qfalse;

Is this really what we want here?  Do we really care if the source Regexp is the same?

m1 = /(foo?)(bar)/.match("fobar")
m2 = /(fo)(bar)/.match("fobar")
m1[0] == m2[0]
m1[1] == m2[1]
m1[2] == m2[2]

----------------------------------------
http://redmine.ruby-lang.org/issues/show/1882

----------------------------------------
http://redmine.ruby-lang.org