From 9a05398810a17c962a990e79e2fd8e5966e318b4 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Sat, 27 Apr 2024 01:10:17 -0400 Subject: [PATCH] Fix wrong capitalization --- src/main/java/me/braydon/pia/common/StringUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/braydon/pia/common/StringUtils.java b/src/main/java/me/braydon/pia/common/StringUtils.java index ef54132fb..0a7176a55 100644 --- a/src/main/java/me/braydon/pia/common/StringUtils.java +++ b/src/main/java/me/braydon/pia/common/StringUtils.java @@ -19,7 +19,7 @@ public final class StringUtils { public static String capitalizeFully(@NonNull String input, char delimiter) { StringBuilder builder = new StringBuilder(); for (String part : input.split(String.valueOf(delimiter))) { - builder.append(part.length() <= 3 ? part.toUpperCase() : capitalize(part)).append(delimiter); + builder.append(part.length() <= 2 ? part.toUpperCase() : capitalize(part)).append(delimiter); } return builder.substring(0, builder.length() - 1).replace(delimiter, ' '); }