Skip to content

Why dasherize adds a leading dash? #23

@sporto

Description

@sporto
underscore "SomeClassName" == "some_class_name"

Doesn't add _ at the beginning.

dasherize "SomeClassName" == "-some-class-name"

Adds leading _.

What is the logic for this. Seems unexpected.

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