-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: to_camel_case fails on leading or trailing underscores (#979)
Changed a prop to `if_` and noticed the `to_camel_case` method throws with index out of bounds because it ends up trying to access characters of an empty string. Figured we should preserve leading and trailing underscores, but convert anything in the middle to camelCase.
- Loading branch information
1 parent
f7ee1a6
commit 08ff89c
Showing
2 changed files
with
22 additions
and
2 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