fix1479
This commit is contained in:
parent
06304f583c
commit
511e134ec5
@ -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',
|
||||
|
@ -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名称',
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user