gruntwork-io / boilerplate

A tool for generating files and folders ("boilerplate") from a set of templates
https://www.gruntwork.io
Mozilla Public License 2.0
157 stars 12 forks source link

Kebabcase doesn't work right when the variable value contains a number followed by a letter #155

Closed yhakbar closed 4 months ago

yhakbar commented 5 months ago

Describe the bug When creating a file using interpolation including a value like 1-a, an extra dash is inserted after the 1, if passed to kebabcase.

To Reproduce A branch has been pushed up that contains a test case to reproduce and the unexpected output: bug/kebabcase-bug

Expected behavior The extra dash shouldn't be there.