Fix wrong capitalization

This commit is contained in:
Braydon 2024-04-27 01:10:17 -04:00
parent 2aaa4194a9
commit 9a05398810

View File

@ -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, ' ');
}