[Fix]Change the HTTP or HTTPS regular expression (#10166)
(cherry picked from commit 13a83e50f2)
This commit is contained in:
parent
8ba5fa1afd
commit
713a7802a4
|
|
@ -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…
Reference in New Issue