Skip to content

Different Results for dasherize and clean #48

@ErikFeeley

Description

@ErikFeeley

Describe the bug
dasherize has different outputs when compared across the old String.Extra versus the current implementation from here. clean also processes strings where words have a \n between them without spaces differently.

To Reproduce
Steps to reproduce the behavior: Please check out this Ellie. I copied only what I needed from the old and new implementations to examine.

Expected behavior
Ideally upgrading from string-extra 4.0.1 to core-extra 1.0 would not change existing behavior.

Additional context
When attempting the upgrade from various *-extra libraries to core-extra 1.0 I discovered these issues via our tests. I see that this was discussed over here and the history goes back all the way to 2017. Well, related to the leading dash that is. I haven't found any additional context around clean though. Just kidding found this :).

Lastly I want to say thanks again for putting core-exra together. And if I can find time I would like to contribute to the project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions