[ruby-cvs:64289] rhe:r57123 (trunk): re.c: consider the case of RMatch::regexp is nil

rhe at ruby-lang.org rhe at ruby-lang.org
Tue Dec 20 16:32:23 JST 2016


rhe	2016-12-20 16:32:23 +0900 (Tue, 20 Dec 2016)

  New Revision: 57123

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57123

  Log:
    re.c: consider the case of RMatch::regexp is nil
    
    Follow r49675, r57098 and r57110. Don't assume RMatch::regexp always
    contains a valid Regexp instance; it will be Qnil if the MatchData is
    created by rb_backref_set_string().  [ruby-core:78741] [Bug #13054]

  Modified files:
    trunk/re.c
    trunk/test/ruby/test_regexp.rb


More information about the ruby-cvs mailing list