Commit 9169b4e3 authored by Hando Lukats's avatar Hando Lukats
Browse files

TEIS-2422 updated regex for markodown removal

parent e75ac191
......@@ -57,8 +57,8 @@ public class RiskAssessmentPDFComposeService {
if (string == null) {
return null;
}
String pattern = "(.*) (\\[([a-zA-Z]*)]\\?\\([0-9]*\\))(.)";
return string.replaceAll(pattern, "$1 $3$4");
String pattern = "(.*) (\\[([a-zA-Z]*)]\\?*\\(.*\\))";
return string.replaceAll(pattern, "$1 $3");
}
public RiskIndicatorPdfDto composeRiskIndicator(RiskStatementAssessmentPdfDto riskStatementAssessment,
......
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