Skip to content
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

This will exclude spaces but include tabs and ideographic space #27

Open
valeriyvan opened this issue Jun 25, 2023 · 2 comments
Open

This will exclude spaces but include tabs and ideographic space #27

valeriyvan opened this issue Jun 25, 2023 · 2 comments

Comments

@valeriyvan
Copy link

return characters.filter { $0 != " " }.count

it's better to use isWhitespace which is intended exact for such cases.

@BasThomas
Copy link
Owner

Thanks, @valeriyvan! You can tell it's definitely a bit of a bare-bones project at the moment, and you're totally right. Would you be up for creating a pull request to tackle this? :)

@valeriyvan
Copy link
Author

Thanks, @valeriyvan! You can tell it's definitely a bit of a bare-bones project at the moment, and you're totally right. Would you be up for creating a pull request to tackle this? :)

no

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

2 participants