This is an automated email from the ASF dual-hosted git repository.

kerwin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 837c9ba  fix bug:when shell task raw script has $[${day} - 1],throw 
java.lang.IllegalArgumentException::Pattern includes reserved character:'{' 
(#5313)
837c9ba is described below

commit 837c9ba2cc48377654031721c9da2ab7410e5390
Author: roi <[email protected]>
AuthorDate: Mon Apr 19 17:50:29 2021 +0800

    fix bug:when shell task raw script has $[${day} - 1],throw 
java.lang.IllegalArgumentException::Pattern includes reserved character:'{' 
(#5313)
---
 .../java/org/apache/dolphinscheduler/common/utils/ParameterUtils.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/ParameterUtils.java
 
b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/ParameterUtils.java
index 034217e..e010e06 100644
--- 
a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/ParameterUtils.java
+++ 
b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/ParameterUtils.java
@@ -45,7 +45,7 @@ public class ParameterUtils {
 
     private static final Logger logger = 
LoggerFactory.getLogger(ParameterUtils.class);
 
-    private static final String DATE_PARSE_PATTERN = "\\$\\[([^\\]]+)]";
+    private static final String DATE_PARSE_PATTERN = "\\$\\[([^\\$\\]]+)]";
 
     private static final String DATE_START_PATTERN = "^[0-9]";
 

Reply via email to