RED-3974: Do not add header to header row

This commit is contained in:
deiflaender 2022-08-12 11:29:01 +02:00
parent 4f66f5acf7
commit 6bc5a6a135
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ public class SectionTextBuilderService {
return buildHeaderName(currentCell.getHeaderCells().get(currentCell.getHeaderCells().size() - 1));
}
if (!hasHeader && currentRowSize == firstRow.size()) {
if (!hasHeader && currentRowSize == firstRow.size() && currentCell != firstRow.get(cellNum)) {
return buildHeaderName(firstRow.get(cellNum));
}

View File

@ -389,5 +389,5 @@ rule "101: Redact CAS numbers"
when
Section(hasTableHeader("Sample #"))
then
section.redactByRegEx("\\b[1-9]{1}[0-9]{1,5}-\\d{2}-\\R?\\d{1,2}\\b", true, 0, "PII", 101, "compound/sample identifier", "Article 4(2) first indent of Regulation No. 1049/2001");
section.redactCell("Sample #", 8, "PII", true, "Redacted because row is a vertebrate study", "Reg (EC) No 1107/2009 Art. 63 (2g)");
end