Browse Source

[Fix]Change the HTTP or HTTPS regular expression (#10166)

3.1.0-release
labbomb 3 years ago committed by GitHub
parent
commit
13a83e50f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-http.ts

2
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'))
}

Loading…
Cancel
Save