-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Function capitalize word (#460)
* feat: implement function capitalize_word * test: add test TestCapitalizeWordAction fix: in CapitalizeWord add strings.Join(capWords, " ") to return. * fix: in CapitalizeWord use Fields instead of Split to takecare of dup spaces. * fix: redo function to keep spaces and handle unicode, add tests. * fix: update comment for NewCapitalizeWordAction * refactor: better readability, cleaner code in CapitalizeWord. Add test case.
- Loading branch information
1 parent
46e8c07
commit 6ce2c8b
Showing
2 changed files
with
23 additions
and
14 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