From 0ee945430485d863ee6bdcef0913eeca286853bc Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Tue, 18 Jul 2023 14:04:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20php=20=E7=BD=91=E7=AB=99=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E5=87=BD=E6=95=B0=E6=94=AF=E6=8C=81=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E4=B8=8B=E5=88=92=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/global/form-rules.ts | 2 +- frontend/src/lang/modules/en.ts | 2 +- frontend/src/lang/modules/tw.ts | 2 +- frontend/src/lang/modules/zh.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/global/form-rules.ts b/frontend/src/global/form-rules.ts index 760b9ffcb7e5..2af6f3a5830f 100644 --- a/frontend/src/global/form-rules.ts +++ b/frontend/src/global/form-rules.ts @@ -376,7 +376,7 @@ const checkDisableFunctions = (rule: any, value: any, callback: any) => { if (value === '' || typeof value === 'undefined' || value == null) { callback(new Error(i18n.global.t('commons.rule.disableFunction'))); } else { - const reg = /^[a-zA-Z,]+$/; + const reg = /^[a-zA-Z_,]+$/; if (!reg.test(value) && value !== '') { callback(new Error(i18n.global.t('commons.rule.disableFunction'))); } else { diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index db0b463cd2b4..19d1175861bc 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -179,7 +179,7 @@ const message = { appName: 'Support English, numbers, - and _, length 2-30, and cannot start and end with -_', containerName: 'Supports letters, numbers, underscores, hyphens and dots, cannot end with hyphen- or dot.1-127', - disableFunction: 'Only support letters and,', + 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 ad8f5fd4e6a9..527ec7429514 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -177,7 +177,7 @@ const message = { nginxDoc: '僅支持英文大小寫,數字,和.', appName: '支持英文、數字、-和_,長度2-30,並且不能以-_開頭和結尾', containerName: '支持字母、數字、下劃線、連字符和點,不能以連字符-或點.結尾,長度1-127', - disableFunction: '僅支持字母和,', + disableFunction: '僅支持字母、下劃線和,', leechExts: '僅支持字母數字和,', paramSimple: '支持小寫字母和數字,長度 1-128', }, diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 68626c4f7af7..764bbd576373 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -177,7 +177,7 @@ const message = { nginxDoc: '仅支持英文大小写,数字,和.', appName: '支持英文、数字、-和_,长度2-30,并且不能以-_开头和结尾', containerName: '支持字母、数字、下划线、连字符和点,不能以连字符-或点.结尾,长度1-127', - disableFunction: '仅支持字母和,', + disableFunction: '仅支持字母、下划线和,', leechExts: '仅支持字母数字和,', paramSimple: '支持小写字母和数字,长度1-128', },