You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/05/20 10:05:11 UTC
[dolphinscheduler] branch dev updated: [Fix]Change the HTTP or HTTPS regular expression (#10166)
This is an automated email from the ASF dual-hosted git repository.
songjian 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 13a83e50f2 [Fix]Change the HTTP or HTTPS regular expression (#10166)
13a83e50f2 is described below
commit 13a83e50f22bb9be2674a2f1edcb7a4193e372b5
Author: labbomb <73...@qq.com>
AuthorDate: Fri May 20 18:05:05 2022 +0800
[Fix]Change the HTTP or HTTPS regular expression (#10166)
---
.../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'))
}