调整网站链接校验

This commit is contained in:
Jason 2023-01-17 17:17:21 +08:00
parent ecd5abbd05
commit f2038fa7af
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ export const rules = reactive<FormRules>({
},
{
pattern:
/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,
/(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/,
message: '请输入合法的网址链接',
trigger: ['blur', 'change']
}