Skip to content

Commit

Permalink
fix IndexOutOfBoundsException
Browse files Browse the repository at this point in the history
xGinko committed Mar 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0952f05 commit d3bd660
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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(result.group(1).toUpperCase(locale)))
.replacement((result, builder) -> builder.content(result.group(0).toUpperCase(locale)))
.build());
}

0 comments on commit d3bd660

Please sign in to comment.