Skip to content

Commit

Permalink
fix uppercase conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Mar 14, 2024
1 parent a42e4b5 commit 0952f05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class KyoriUtil {
public static Component toUpperCase(Component input, Locale locale) {
return input.replaceText(TextReplacementConfig.builder()
.match("(?s).*")
.replacement((result, builder) -> builder.content(builder.content().toUpperCase(locale)))
.replacement((result, builder) -> builder.content(result.group(1).toUpperCase(locale)))
.build());
}

Expand Down

0 comments on commit 0952f05

Please sign in to comment.