You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ki...@apache.org on 2021/07/22 02:23:35 UTC

[dolphinscheduler] branch 1.3.7-prepare updated: [1.3.7-prepare#5313]when shell task raw script has $[${day} - 1], Argument Exception (#5865)

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

kirs pushed a commit to branch 1.3.7-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/1.3.7-prepare by this push:
     new ae434c3  [1.3.7-prepare#5313]when shell task raw script has $[${day} - 1],Argument Exception (#5865)
ae434c3 is described below

commit ae434c346d800aaf97152973a4847ca3bd09f128
Author: Kirs <ac...@163.com>
AuthorDate: Thu Jul 22 10:23:26 2021 +0800

    [1.3.7-prepare#5313]when shell task raw script has $[${day} - 1],Argument Exception (#5865)
    
    pr #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 ee27e07..0d20a22 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]";