v2.0.0: fixed 'The' being capitalized in title case

This commit is contained in:
Evan Debenham
2022-12-30 19:32:53 -05:00
parent 271c448be0
commit 37cb42328c

View File

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