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
|
//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 ){
|
||||||
|
|||||||
Reference in New Issue
Block a user