Fix wrong capitalization
This commit is contained in:
parent
2aaa4194a9
commit
9a05398810
@ -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, ' ');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user