RED-6009 - Document Tree Structure

* minor rule fix
This commit is contained in:
Kilian Schuettler 2023-04-28 13:55:28 +02:00
parent df061a0e27
commit 76e0d522bb

View File

@ -362,7 +362,7 @@ rule "17: Redact line after contact information keywords"
"Email:",
"e-mail:",
"E-mail address:")
$section: SectionNode(excludesTables, containsString($contactKeyword))
$section: SectionNode(containsString($contactKeyword))
then
entityCreationService.lineAfterString($contactKeyword, "PII", EntityType.ENTITY, $section)
.forEach(contactEntity -> {
@ -627,7 +627,7 @@ rule "remove Entity of type RECOMMENDATION when contained by FALSE_RECOMMENDATIO
end
rule "remove Entity of type RECOMMENDATION when contained by ENTITY"
salience 64
salience 256
when
$entity: RedactionEntity($type: type, entityType == EntityType.ENTITY)
$recommendation: RedactionEntity(containedBy($entity), type == $type, entityType == EntityType.RECOMMENDATION, !resized, !skipRemoveEntitiesContainedInLarger)