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
JayDi85 committed Jan 3, 2025
1 parent 07427c1 commit ab1b3f5
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, Math.max(rule.length(), index + 10)) + "` in rule.");
LOGGER.error("Bad &...; sequence `" + rule.substring(index, Math.min(rule.length(), index + 10)) + "` in rule.");
build.append('&');
++index;
++outputIndex;
Expand Down

0 comments on commit ab1b3f5

Please sign in to comment.