Skip to content
New issue

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

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

Already on GitHub? # to your account

bug: Panic (index out of range) when humanizing whitespace #74

Closed
jmooring opened this issue Sep 4, 2024 · 0 comments · Fixed by #75
Closed

bug: Panic (index out of range) when humanizing whitespace #74

jmooring opened this issue Sep 4, 2024 · 0 comments · Fixed by #75

Comments

@jmooring
Copy link

jmooring commented Sep 4, 2024

Each of these causes a panic:

fmt.Println(flect.Humanize(" "))
fmt.Println(flect.Humanize("\n"))
fmt.Println(flect.Humanize("\r"))
fmt.Println(flect.Humanize("\t"))
fmt.Println(flect.Humanize(" \n\r\t"))
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant