We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2344f08 commit 778638aCopy full SHA for 778638a
1 file changed
service/src/main/java/org/folio/rest/workflow/controller/WorkflowController.java
@@ -36,6 +36,9 @@ public class WorkflowController {
36
37
private static final Log LOG = LogFactory.getLog(WorkflowController.class);
38
39
+ private static final String REGX_NOT_GRAPH = "[^\\p{C}]";
40
+ private static final String REGX_EOL = "[\r\n]";
41
+
42
private WorkflowEngineService workflowEngineService;
43
44
private WorkflowCqlService workflowCqlService;
@@ -162,8 +165,8 @@ private String sanitize(String param) {
162
165
if (param == null) return "";
163
166
164
167
return param
- .replaceAll("[^\\p{C}]", "")
- .replaceAll("[\r\n]", " ");
168
+ .replaceAll(REGX_NOT_GRAPH, "")
169
+ .replaceAll(REGX_EOL, " ");
170
}
171
172
/**
0 commit comments