Issue #3575 has been updated by drbrain (Eric Hodel).

Category changed from core to DOC
Assignee set to drbrain (Eric Hodel)

I will add a note to the documentation to cover the behavior of empty strings.
----------------------------------------
Feature #3575: String#split is inconsistent with empty string and negative limit
https://bugs.ruby-lang.org/issues/3575#change-24958

Author: Conrad.Irwin (Conrad Irwin)
Status: Open
Priority: Low
Assignee: drbrain (Eric Hodel)
Category: DOC
Target version: 


=begin
 I expect: "".split(",", -1) == [""]
 Currently: "".split(",", -1) == []
 
 According to the documentation, blank fields should not be stripped when a negative offset is provided.
=end



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