Merge pull request #1544 from zhaoyuguang/z_wcek_1479

Fix1479
This commit is contained in:
Fury Zhu 2019-07-31 10:50:43 +08:00 committed by GitHub
commit 32c2914959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 18 deletions

View File

@ -301,7 +301,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

@ -299,7 +299,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