From 958f9a1aad4b32e4795e3b741740d30f9d847afc Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 7 Feb 2024 22:28:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E4=BB=93=E5=BA=93=E6=AD=A3=E5=88=99=E8=A1=A8?= =?UTF-8?q?=E8=BE=BE=E5=BC=8F=20(#3856)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #3851 --- frontend/src/lang/modules/en.ts | 2 +- frontend/src/lang/modules/tw.ts | 2 +- frontend/src/lang/modules/zh.ts | 2 +- frontend/src/views/container/setting/mirror/index.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 610d7e488..74701d640 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -188,7 +188,7 @@ const message = { nginxDoc: 'Only supports English case, numbers, and .', appName: 'Support English, numbers, - and _, length 2-30, and cannot start and end with -_', containerName: 'Supports letters, numbers, -, _ and .; cannot start with - _ or .; length: 2-128', - mirror: 'Support image accelerator addresses that start with http(s)://, English uppercase and lowercase letters, numbers, periods, and hyphens, and there should be no empty lines.', + mirror: 'The mirror acceleration address should start with http(s)://, support English letters (both uppercase and lowercase), numbers, . / and -, and should not contain blank lines.', disableFunction: 'Only support letters ,underscores,and,', leechExts: 'Only support letters, numbers and,', paramSimple: 'Support lowercase letters and numbers, length 1-128', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index e24b077fa..015ac663c 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -186,7 +186,7 @@ const message = { nginxDoc: '僅支持英文大小寫,數字,和.', appName: '支持英文、數字、-和_,長度2-30,並且不能以-_開頭和結尾', containerName: '支持字母、數字、_-和.,不能以-_或.開頭,長度2-128', - mirror: '支持以 http(s):// 開頭,英文大小寫,數字,. 和 - 的鏡像加速地址,且不能有空行', + mirror: '支持以 http(s):// 開頭,英文大小寫,數字,. / 和 - 的鏡像加速地址,且不能有空行', disableFunction: '僅支持字母、下劃線和,', leechExts: '僅支持字母數字和,', paramSimple: '支持小寫字母和數字,長度 1-128', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index c2c1af438..726059487 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -186,7 +186,7 @@ const message = { nginxDoc: '仅支持英文大小写,数字,和.', appName: '支持英文、数字、-和_,长度2-30,并且不能以-_开头和结尾', containerName: '支持字母、数字、_-和.,不能以-_或.开头,长度2-128', - mirror: '支持以 http(s):// 开头,英文大小写,数字,. 和 - 的镜像加速地址,且不能有空行', + mirror: '支持以 http(s):// 开头,英文大小写,数字,. / 和 - 的镜像加速地址,且不能有空行', disableFunction: '仅支持字母、下划线和,', leechExts: '仅支持字母数字和,', paramSimple: '支持小写字母和数字,长度1-128', diff --git a/frontend/src/views/container/setting/mirror/index.vue b/frontend/src/views/container/setting/mirror/index.vue index 99528ae0d..199660e3c 100644 --- a/frontend/src/views/container/setting/mirror/index.vue +++ b/frontend/src/views/container/setting/mirror/index.vue @@ -67,7 +67,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./-]+$/; let mirrors = form.mirrors.split('\n'); for (const item of mirrors) { if (item === '') {