feat: php 网站禁用函数支持输入下划线 (#1705)

pull/1708/head
zhengkunwang 2023-07-18 14:20:39 +08:00 committed by GitHub
parent 4c2302dc94
commit 920f1112fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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',
},

View File

@ -177,7 +177,7 @@ const message = {
nginxDoc: '.',
appName: '-_,2-30,-_',
containerName: ',-.,1-127',
disableFunction: ',',
disableFunction: ',',
leechExts: ',',
paramSimple: ', 1-128',
},

View File

@ -177,7 +177,7 @@ const message = {
nginxDoc: '.',
appName: '-_,2-30,-_',
containerName: '线,-.,1-127',
disableFunction: ',',
disableFunction: '线,',
leechExts: ',',
paramSimple: ',1-128',
},