sindresorhus / camelcase

Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar
MIT License
682 stars 95 forks source link

Passed in a single seperator, return the original seperator #98

Closed tychenjiajun closed 2 years ago

tychenjiajun commented 2 years ago
camelCase('-');
//=> '-'

Is this a bug?

sindresorhus commented 2 years ago

I would say so yes. It should be an empty string.