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:
parent
5c9315ff1c
commit
70863f411d
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user