Commit 125f068e authored by Hando Lukats's avatar Hando Lukats
Browse files

TEIS-2425; improved regex for markdown removal

parent 417a6d36
......@@ -59,7 +59,7 @@ public class RiskAssessmentPDFComposeService {
if (string == null) {
return null;
return string.replaceAll("\\[([a-zA-Z0-9]*)]\\?*\\([a-zA-Z0-9]+\\)", "$1");
return string.replaceAll("\\[([^\\[\\]]*)]\\?*\\([^()]*\\)", "$1");
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