commit
32c2914959
@ -301,7 +301,7 @@ const I18N_CONF = {
|
|||||||
newListingMain: 'Create Configuration',
|
newListingMain: 'Create Configuration',
|
||||||
newListing: 'Create Configuration',
|
newListing: 'Create Configuration',
|
||||||
publishFailed: 'Publish failed. Make sure parameters are entered correctly.',
|
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.',
|
newConfig: 'Data ID cannot be empty.',
|
||||||
dataIdIsNotEmpty: 'Data ID cannot exceed 255 characters in length',
|
dataIdIsNotEmpty: 'Data ID cannot exceed 255 characters in length',
|
||||||
groupPlaceholder: 'Enter your group name',
|
groupPlaceholder: 'Enter your group name',
|
||||||
|
@ -299,7 +299,7 @@ const I18N_CONF = {
|
|||||||
newListingMain: '新建配置',
|
newListingMain: '新建配置',
|
||||||
newListing: '新建配置',
|
newListing: '新建配置',
|
||||||
publishFailed: '发布失败。请检查参数是否正确。',
|
publishFailed: '发布失败。请检查参数是否正确。',
|
||||||
doNotEnte: 'Illegal characters not allowed',
|
doNotEnter: '不允许非法字符',
|
||||||
newConfig: 'Data ID 不能为空',
|
newConfig: 'Data ID 不能为空',
|
||||||
dataIdIsNotEmpty: 'Data ID 长度不能超过255字符',
|
dataIdIsNotEmpty: 'Data ID 长度不能超过255字符',
|
||||||
groupPlaceholder: '请输入Group名称',
|
groupPlaceholder: '请输入Group名称',
|
||||||
|
@ -365,10 +365,10 @@ class NewConfig extends React.Component {
|
|||||||
|
|
||||||
validateChart(rule, value, callback) {
|
validateChart(rule, value, callback) {
|
||||||
const { locale = {} } = this.props;
|
const { locale = {} } = this.props;
|
||||||
const chartReg = /[@#\$%\^&\*]+/g;
|
const chartReg = /[@#\$%\^&\*\s]+/g;
|
||||||
|
|
||||||
if (chartReg.test(value)) {
|
if (chartReg.test(value)) {
|
||||||
callback(locale.doNotEnte);
|
callback(locale.doNotEnter);
|
||||||
} else {
|
} else {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user