From 37cb42328c6538535a8453299599db49cd65447d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 30 Dec 2022 19:32:53 -0500 Subject: [PATCH] v2.0.0: fixed 'The' being capitalized in title case --- .../shatteredpixeldungeon/messages/Messages.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/messages/Messages.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/messages/Messages.java index fce677800..cd3bdcc01 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/messages/Messages.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/messages/Messages.java @@ -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 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 ){