Project

General

Profile

Bug #12108

Splitting an empty string returns an empty array

Added by sawa (Tsuyoshi Sawada) over 4 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:73962]

Description

Splitting an empty string returns an empty array.

"".split("") # => []
"".split("a") # => []
"".split(//) # => []
"".split(/a/) # => []

Also available in: Atom PDF