Skip to content

Problem for single String #21

@SmartHbdev

Description

@SmartHbdev

Everything works fine for "John do" but only "John" give nothing.

var nameComponents = string.uppercased().components(separatedBy: CharacterSet.letters.inverted)

nameComponents is nil with only "John".
I don't know if it's expected but would be nice to get only a J in this case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions