fix bad error handling (related to #13132)

This commit is contained in:
Oleg Agafonov 2025-01-03 12:45:21 +04:00
parent 07427c1df6
commit ab1b3f5297

View file

@ -143,7 +143,7 @@ public final class TextboxRuleParser {
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;