Skip to content

Parse numbers as standalone words in kebab case conversion #95

@tcummin2

Description

@tcummin2

I have many color variables that represent different light levels of a single color in increasing lightness (red-lighter1, red-lighter2, red-lighter3, red-darker-1, etc). Currently, a variable such as redLighter1 would be converted to red-lighter1 instead of red-lighter-1.

In Lodash, _.kebabCase('redLighter1') === 'red-lighter-1'

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