From 70863f411d59cef9e7e78ad3e44b0765efcb1e43 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 30 Jan 2024 14:54:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E6=89=A9=E5=B1=95?= =?UTF-8?q?=E6=A8=A1=E7=89=88=E8=BF=87=E9=95=BF=E6=97=A0=E6=B3=95=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E7=9A=84=E9=97=AE=E9=A2=98=20(#3749)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/3731 --- frontend/src/global/form-rules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/global/form-rules.ts b/frontend/src/global/form-rules.ts index ac4fe008f..18c8ee8c5 100644 --- a/frontend/src/global/form-rules.ts +++ b/frontend/src/global/form-rules.ts @@ -478,7 +478,7 @@ const checkPHPExtensions = (rule, value, callback) => { if (value === '' || typeof value === 'undefined' || value == null) { callback(new Error(i18n.global.t('commons.rule.phpExtension'))); } else { - const reg = /^[a-z0-9,_]{1,300}$/; + const reg = /^[a-z0-9,_]+$/; if (!reg.test(value)) { callback(new Error(i18n.global.t('commons.rule.phpExtension'))); } else {