1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 14:08:06 +08:00

fix: 解决扩展模版过长无法保存的问题 (#3749)

Refs https://github.com/1Panel-dev/1Panel/issues/3731
This commit is contained in:
zhengkunwang 2024-01-30 14:54:11 +08:00 committed by GitHub
parent 5c9315ff1c
commit 70863f411d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {