[ruby-cvs:69920] nobu:r62779 (trunk): re.c: do not escape terminator in Regexp.union

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Mar 16 22:37:44 JST 2018


nobu	2018-03-16 22:37:44 +0900 (Fri, 16 Mar 2018)

  New Revision: 62779

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

  Log:
    re.c: do not escape terminator in Regexp.union
    
    * re.c (rb_reg_str_with_term): change terminator.
    
    * re.c (rb_reg_s_union): terminator in source string does not need
      to be escaped.  terminators are outside of regexp source itself.
      [ruby-core:86149] [Bug #14608]

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


More information about the ruby-cvs mailing list