Closed alanqthomas closed 7 years ago
Hey @alanqthomas, Interesting idea.
What do you think about the punctuation . , ?
removal from the sentence? Probably it should be kept in the title case too.
Thanks!
@panzerdp I would think all punctuation should be left intact as well.
Sounds good. I will implement this function.
Feature Suggestion
Convert a string to title case.
Examples
Implentation Suggestions
This SO question has many suggestions.
The top answer uses string.replace() with regex:
Not sure about the coverage of all cases.
Options
In formal title case, words like 'a', 'it', 'of', etc. are ignored (not capitalized). Consider this as an option.
v.titleCase(subject, allWords)