fix: while parsing rule identifiers the wrong length is calculated

This commit is contained in:
Ali Oezyetimoglu 2024-01-15 21:01:07 +01:00
parent c9c5476cf2
commit 30323568c4

View File

@ -167,7 +167,7 @@ public class OldRulesParser {
cleanedValue = cleanedValue.substring(1);
}
if (cleanedValue.endsWith("]")) {
cleanedValue = cleanedValue.substring(0, value.length() - 1);
cleanedValue = cleanedValue.substring(0, cleanedValue.length() - 1);
}
if (cleanedValue.isEmpty() || cleanedValue.isBlank()) {
return Collections.emptyList();