Skip to content

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

@jmooring

Description

@jmooring

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"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions