Project

General

Profile

Actions

Bug #12108

closed

Splitting an empty string returns an empty array

Added by sawa (Tsuyoshi Sawada) about 5 years ago. Updated about 5 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/) # => []
Actions

Also available in: Atom PDF