Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added .toTitleCase function #87

Closed
wants to merge 2 commits into from
Closed

Added .toTitleCase function #87

wants to merge 2 commits into from

Conversation

chongwang87
Copy link

example:
S('a simple CCTV test').toTitleCase().s
output : 'A Simple CCTV Test'

@ultimatedelman
Copy link

Ha! I just submitted my own pull request for this exact functionality, see #88 . I guess I should have looked here first. Yours doesn't handle hyphenated words, though, and mine doesn't handle already mixed-case words. Neither of ours handles articles.

@ultimatedelman
Copy link

Fixed mine to handle mixed-case words :)

@chongwang87
Copy link
Author

will use @ultimatedelman PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants