From d71514885dd692428f05dcd8a5c476cb01dacf03 Mon Sep 17 00:00:00 2001 From: John Bro <42930107+john1298308460@users.noreply.github.com> Date: Tue, 2 Jul 2024 17:25:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20docker=20=E9=95=9C=E5=83=8F=E5=8A=A0?= =?UTF-8?q?=E9=80=9F=E5=9C=B0=E5=9D=80=E6=94=AF=E6=8C=81=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=B8=A6=E7=AB=AF=E5=8F=A3=20(#5638)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: zhoujunhong <1298308460@qq.com> --- frontend/src/views/container/setting/mirror/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/container/setting/mirror/index.vue b/frontend/src/views/container/setting/mirror/index.vue index c6278d9ce..4fcab2679 100644 --- a/frontend/src/views/container/setting/mirror/index.vue +++ b/frontend/src/views/container/setting/mirror/index.vue @@ -74,7 +74,7 @@ const rules = reactive({ function checkMirrors(rule: any, value: any, callback: any) { if (form.mirrors !== '') { - const reg = /^https?:\/\/[a-zA-Z0-9./-]+$/; + const reg = /^https?:\/\/[a-zA-Z0-9.-]+(:[0-9]{1,5})?(\/[a-zA-Z0-9./-]*)?$/; let mirrors = form.mirrors.split('\n'); for (const item of mirrors) { if (item === '') {