Skip to content

underscore doesn't translate dashes like Rails #79

@ghost

Description

In Rails String#underscore translates dashes - into _.

Output from pry using Rails:

[15] pry(main)> "credable-searches".underscore
=> "credable_searches"

In this library dashes keep being dashes.

Output from console calling underscore

underscore: credable-searches -> credable-searches

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