Skip to content

Commit

Permalink
fix bad error handling (related to #13132)
Browse files Browse the repository at this point in the history
  • Loading branch information
xenohedron committed Jan 3, 2025
1 parent 9164509 commit 07427c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public static TextboxRule parse(CardView source, String rule, String cardNameToU
index += 5;
++outputIndex;
} else {
LOGGER.error("Bad &...; sequence `" + rule.substring(index + 1, index + 10) + "` in rule.");
LOGGER.error("Bad &...; sequence `" + rule.substring(index, Math.max(rule.length(), index + 10)) + "` in rule.");

This comment has been minimized.

Copy link
@JayDi85

JayDi85 Jan 3, 2025

Member

Must be min, fixed by ab1b3f5

build.append('&');
++index;
++outputIndex;
Expand Down

0 comments on commit 07427c1

Please sign in to comment.