< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事(スレッド移動)
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #3575 has been updated by akr.
Description updated
I think Ruby thinks "" has no fields, not one field which have empty string.
So, "".split(",", -1) should return [].
Documentation issue, maybe.
----------------------------------------
Feature #3575: String#split is inconsistent with empty string and negative limit
https://bugs.ruby-lang.org/issues/3575#change-24730
Author: Conrad.Irwin
Status: Open
Priority: Low
Assignee:
Category: core
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/