DM-307: Fixed bug in rule function byRegexWithLinebreaks #24

Merged
dominique.eiflaender1 merged 1 commits from DM-307-4 into master 2023-06-29 13:22:25 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -141,8 +141,8 @@ public class RedactionSearchUtility {
if (at.numberOfLines() > 1) {
for (int i = 0; i < at.numberOfLines(); i++) {
stringBuilder.append(at.getLine(i));
stringBuilder.setCharAt(stringBuilder.length() - 1, '\n');
}
stringBuilder.setCharAt(stringBuilder.length() - 1, '\n');
} else {
stringBuilder.append(at.getSearchText()).setCharAt(stringBuilder.length() - 1, '\n');
}

View File

@ -43,7 +43,7 @@ public class DocumineFloraTest extends AbstractRedactionIntegrationTest {
@Test
public void titleExtraction() throws IOException {
AnalyzeRequest request = uploadFileToStorage("files/Documine/Flora/A8591B/18-Curacron_ToxicidadeOcularInVitro.pdf");
AnalyzeRequest request = uploadFileToStorage("files/Documine/Flora/A13617AV/425_F.1.1.1 - A13617AV - Acute Oral Toxicity Study.pdf");
System.out.println("Start Full integration test");
analyzeService.analyzeDocumentStructure(new StructureAnalyzeRequest(request.getDossierId(), request.getFileId()));
System.out.println("Finished structure analysis");