Project

General

Profile

Feature #3575

Updated by sawa (Tsuyoshi Sawada) over 4 years ago

Currently works like this: 

 ```ruby 
 =begin 
  I expect: "".split(",", -1) # => == [""] 
  Currently: "".split(",", -1) == [] 
 ``` 

 
 
  According to the documentation, blank fields should not be stripped when a negative offset is provided. I expect: 

 ```ruby 
 "".split(",", -1) # => [""] =end 
 ```

Back