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

(cherry picked from commit 13a83e50f2)
This commit is contained in:
labbomb 2022-05-20 18:05:05 +08:00 committed by Jiajie Zhong
parent 8ba5fa1afd
commit 713a7802a4
1 changed files with 1 additions and 1 deletions

View File

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