-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow non-letters in snake case (#29)
* allow non-letters in snake case the current code toCamel() converts "go-2-town" to "go-2Town". This fix converts it to "go2Town". It is also slightly more efficient because it only captures the next character instead of matching lowercase letters. * added 3 new tests, changed error msg 3 new tests to test numbers and whitespace in names. An update to the error message that checks for non-word characters in a name.
- Loading branch information
Showing
2 changed files
with
21 additions
and
3 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