Skip to content

Func lo.SnakeCase adds underscore before digits #948

Description

@renom

Function lo.SnakeCase always adds underscore before digits, for example:

str := lo.SnakeCase("Text1")
// text_1

Is it supposed behavior? I used a different library, and it didn't add an underscore in such case (i.e. it'd return text1 in the above example).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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