blakeembrey / change-case

Convert strings between camelCase, PascalCase, Capital Case, snake_case and more
MIT License
2.22k stars 92 forks source link

param case with numbers as strings resulting in snake case? #278

Closed michaelwarren1106 closed 2 years ago

michaelwarren1106 commented 2 years ago

I have an issue where I have a string created as such:

const arrayOfStrings = ['string', '100'];
const result = paramCase(arrayOfStrings.join(' '));

// result : string_100

Seems very weird that underscores appear in paramCase?

I'm using change-case 4.1.2

michaelwarren1106 commented 2 years ago

not exactly sure what went wrong, but I refactored my code and things started to behave...