v2.0.0: fixed 'The' being capitalized in title case
This commit is contained in:
@@ -166,10 +166,7 @@ public class Messages {
|
||||
//Words which should not be capitalized in title case, mostly prepositions which appear ingame
|
||||
//This list is not comprehensive!
|
||||
private static final HashSet<String> noCaps = new HashSet<>(
|
||||
Arrays.asList(new String[]{
|
||||
//English
|
||||
"a", "an", "and", "of", "by", "to", "the", "x"
|
||||
})
|
||||
Arrays.asList("a", "an", "and", "of", "by", "to", "the", "x", "for")
|
||||
);
|
||||
|
||||
public static String titleCase( String str ){
|
||||
|
||||
Reference in New Issue
Block a user