upperInitial() doesn't handle contractions

All your suggestions, requests and ideas for future development
Post Reply
Igor
Posts: 14
Joined: 27 Jun 2012, 21:04

upperInitial() doesn't handle contractions

Post by Igor »

upperInitial incorrectly capitalizes contractions in show or episode names. e.g. earth'S, don'T
User avatar
rednoah
The Source
Posts: 22985
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: upperInitial() doesn't handle contractions

Post by rednoah »

Changed upperInitial() to

Code: Select all

replaceAll(/(?<=[&()+.,-;<=>?\[\]_{|}~ ]|^)[a-z]/, { it.toUpperCase() })
:idea: Please read the FAQ and How to Request Help.
Igor
Posts: 14
Joined: 27 Jun 2012, 21:04

Re: upperInitial() doesn't handle contractions

Post by Igor »

Awesome thanks!
Post Reply