fix bad error handling (related to #13132)

This commit is contained in:
xenohedron 2025-01-03 00:02:22 -05:00
parent 9164509b51
commit 07427c1df6

View file

@ -143,7 +143,7 @@ public final class TextboxRuleParser {
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.");
build.append('&');
++index;
++outputIndex;