Skip to content

Problem for single String #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
SmartHbdev opened this issue Sep 13, 2022 · 0 comments
Open

Problem for single String #21

SmartHbdev opened this issue Sep 13, 2022 · 0 comments

Comments

@SmartHbdev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant