Commit 8259dbf9 authored by Hando Lukats's avatar Hando Lukats
Browse files

TEIS-2487; fixed estonian charactes being removed from risk assessment title

parent a7b3e301
theGroup=ee.sm.ti.teis
theVersion=1.5.1
theVersion=1.6.0-SNAPSHOT
commonsVersion=1.27.0
officeApiGatewayVersion=1.27.1
filesVersion=1.21.0
......
......@@ -252,7 +252,7 @@ public class RiskAssessmentPDFService {
String jsonData = jsonUtil.writeObjectAsString(riskAssessmentPdf);
PreviewDocumentMsRequest request = getMsPreviewDocumentRequest(requestMetaDTO, jsonData);
GeneratedDocumentDto extractedMessagesDocument = docGenServiceClient.getDocument(request, requestMetaDTO);
String clearedFileName = riskAssessmentPdf.getTitle().replaceAll("[^A-Za-z0-9\\p{IsCyrillic} ]", "").trim();
String clearedFileName = riskAssessmentPdf.getTitle().replaceAll("[^A-Za-z0-9 &öäüõÖÄÜÕ\\p{IsCyrillic}]", "").trim();
SignFileStream documentToSign = SignFileStream.builder()
.content(extractedMessagesDocument.getContent())
.fileName(clearedFileName + FILE_EXTENSION)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment