Merge branch 'DM-307-4' into 'master'
DM-307: Fixed bug in rule function byRegexWithLinebreaks Closes DM-307 See merge request redactmanager/redaction-service!24
This commit is contained in:
commit
a4b86a874b
@ -141,8 +141,8 @@ public class RedactionSearchUtility {
|
|||||||
if (at.numberOfLines() > 1) {
|
if (at.numberOfLines() > 1) {
|
||||||
for (int i = 0; i < at.numberOfLines(); i++) {
|
for (int i = 0; i < at.numberOfLines(); i++) {
|
||||||
stringBuilder.append(at.getLine(i));
|
stringBuilder.append(at.getLine(i));
|
||||||
|
stringBuilder.setCharAt(stringBuilder.length() - 1, '\n');
|
||||||
}
|
}
|
||||||
stringBuilder.setCharAt(stringBuilder.length() - 1, '\n');
|
|
||||||
} else {
|
} else {
|
||||||
stringBuilder.append(at.getSearchText()).setCharAt(stringBuilder.length() - 1, '\n');
|
stringBuilder.append(at.getSearchText()).setCharAt(stringBuilder.length() - 1, '\n');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -43,7 +43,7 @@ public class DocumineFloraTest extends AbstractRedactionIntegrationTest {
|
|||||||
@Test
|
@Test
|
||||||
public void titleExtraction() throws IOException {
|
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");
|
System.out.println("Start Full integration test");
|
||||||
analyzeService.analyzeDocumentStructure(new StructureAnalyzeRequest(request.getDossierId(), request.getFileId()));
|
analyzeService.analyzeDocumentStructure(new StructureAnalyzeRequest(request.getDossierId(), request.getFileId()));
|
||||||
System.out.println("Finished structure analysis");
|
System.out.println("Finished structure analysis");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user