node-sass-json-importer icon indicating copy to clipboard operation
node-sass-json-importer copied to clipboard

Parse numbers as standalone words in kebab case conversion

Open tcummin2 opened this issue 4 years ago • 0 comments

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'

tcummin2 avatar Dec 07 '20 16:12 tcummin2