-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: camelcase and pascalcase transformation logic (#35)
## Description In sprig, `camelCase` return a `PascalCase` and don't respect the separation logic between both functions. ## Changes - Introduce a `toPascalCase` function to transform a string to a `PascalCase` - Fix the behivour of `toCamelCase` function to transform a string to a `camelCase` ## Fixes Masterminds/sprig#328 ## Checklist - [ ] I have read the **CONTRIBUTING.md** document. - [ ] My code follows the code style of this project. - [ ] I have added tests to cover my changes. - [ ] All new and existing tests passed. - [ ] I have updated the documentation accordingly. - [ ] This change requires a change to the documentation on the website. ## Additional Information This edit are related to Masterminds/sprig#328 Backport ticket from @ghostsquad
- Loading branch information
Showing
2 changed files
with
33 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters