This commit is contained in:
赵禹光 2019-07-13 12:43:01 +08:00
parent 06304f583c
commit 511e134ec5
5 changed files with 10 additions and 10 deletions

View File

@ -296,7 +296,7 @@ const I18N_CONF = {
newListingMain: 'Create Configuration',
newListing: 'Create Configuration',
publishFailed: 'Publish failed. Make sure parameters are entered correctly.',
doNotEnte: 'Illegal characters not allowed',
doNotEnter: 'Illegal characters not allowed',
newConfig: 'Data ID cannot be empty.',
dataIdIsNotEmpty: 'Data ID cannot exceed 255 characters in length',
groupPlaceholder: 'Enter your group name',

View File

@ -294,7 +294,7 @@ const I18N_CONF = {
newListingMain: '新建配置',
newListing: '新建配置',
publishFailed: '发布失败请检查参数是否正确',
doNotEnte: 'Illegal characters not allowed',
doNotEnter: '不允许非法字符',
newConfig: 'Data ID 不能为空',
dataIdIsNotEmpty: 'Data ID 长度不能超过255字符',
groupPlaceholder: '请输入Group名称',

View File

@ -365,10 +365,10 @@ class NewConfig extends React.Component {
validateChart(rule, value, callback) {
const { locale = {} } = this.props;
const chartReg = /[@#\$%\^&\*]+/g;
const chartReg = /[@#\$%\^&\*\s]+/g;
if (chartReg.test(value)) {
callback(locale.doNotEnte);
callback(locale.doNotEnter);
} else {
callback();
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long