You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2022/05/23 07:01:15 UTC

[dolphinscheduler] 26/33: [Fix]Change the HTTP or HTTPS regular expression (#10166)

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

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

commit 713a7802a4bf77751b0f2014dfaf0ee25e5a1fca
Author: labbomb <73...@qq.com>
AuthorDate: Fri May 20 18:05:05 2022 +0800

    [Fix]Change the HTTP or HTTPS regular expression  (#10166)
    
    
    (cherry picked from commit 13a83e50f22bb9be2674a2f1edcb7a4193e372b5)
---
 .../src/views/projects/task/components/node/fields/use-http.ts          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-http.ts b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-http.ts
index eaa29fdf1d..855d34c226 100644
--- a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-http.ts
+++ b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-http.ts
@@ -56,7 +56,7 @@ export function useHttp(model: { [field: string]: any }): IJsonItem[] {
             return new Error(t('project.node.http_url_tips'))
           }
           if (
-            value.search(new RegExp(/http[s]{0,1}:\/\/([\w.]+\/?)\S*/, 'i'))
+            value.search(new RegExp(/http[s]{0,1}:\/\/\S*/, 'i'))
           ) {
             return new Error(t('project.node.http_url_validator'))
           }