Skip to content

strings: problem for strings.Split() #23534

@iiinsomnia

Description

@iiinsomnia

if param s is an empty string, the result of strings.Split() should be an empty slice. But not now.

eg:

len(strings.Split("", ",")) // result: 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions