[ruby-cvs:67180] nobu:r60002 (trunk): dup String#split return value

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Sep 23 16:09:07 JST 2017


nobu	2017-09-23 16:09:07 +0900 (Sat, 23 Sep 2017)

  New Revision: 60002

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

  Log:
    dup String#split return value
    
    * string.c (rb_str_split): return duplicated receiver, when no
      splits.  patched by tompng (tomoya ishida) in [ruby-core:82911],
      and the test case by Seiei Miyagi <hanachin at gmail.com>.
      [Bug#13925] [Fix GH-1705]

  Modified files:
    trunk/string.c
    trunk/test/ruby/test_string.rb


More information about the ruby-cvs mailing list