Merge branch 'hotfix-ali-parse-rule-identifiers' into 'master'

fix: while parsing rule identifiers the wrong length is calculated

See merge request redactmanager/redaction-service!248
This commit is contained in:
Ali Oezyetimoglu 2024-01-16 08:26:52 +01:00
commit 9c41888721

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();