Closed rogerl50 closed 1 year ago
This is by design. If a string is all caps (or all lowercase), it is assumed there is no intentional casing and it is titlecased as such. If there is already mixed case and a word is all uppercase, it is assumed that word is an acronym, and it is left unchanged.
titlecase('FOO bar')
returnsFOO Bar
, whiletitlecase('FOO BAR')
returnsFoo Bar
.