akalongman / sublimetext-stringutilities

Sublime Text 2/3 plugin for string manipulations
MIT License
83 stars 24 forks source link

fix for bug with PascalCase conversion #29

Closed jfsawin closed 7 years ago

jfsawin commented 7 years ago

In the existing implementation, converting from underscore to PascalCase requires the first letter to be uppercase, which didn't make sense to me, given that the PascalCase->Underscores conversion leaves the first letter lowercase. This small fix now makes PascalCase<->Underscores a working toggle by changing this condition to require a lowercase first letter, similar to how the camelCase<->Underscores conversion works.

The current implementation of these two converters actually seems to have additional problems, and maybe I'll tackle those soon too. Hopefully I haven't misunderstood anything here about how this function is supposed to work!