Compare commits

..

No commits in common. '3bb7164b4ffe04031e50482bab2e5f028de1ecee' and '8fcf17568b11695b529636df381003f808ed8e33' have entirely different histories.

@ -97,9 +97,6 @@ const HandleModal = ({ visible, onChangeVisible, onRefresh }) => {
if (value.includes('**empty**')) { if (value.includes('**empty**')) {
return cb('非法事件标识,请重新输入'); return cb('非法事件标识,请重新输入');
} }
if (!/^[A-Za-z0-9_]+$/.test(value)) {
return cb('事件标识只能输入英文字母、数字和下划线');
}
return cb(); return cb();
} }
@ -326,4 +323,4 @@ const EventContainer = () => {
); );
}; };
export default EventContainer; export default EventContainer;

@ -151,9 +151,6 @@ const AddGlobalVarModal = ({ visible, onOk, onChangeVisible, form }) => {
if (!value) { if (!value) {
return cb('请填写变量名'); return cb('请填写变量名');
} }
if (!/^[A-Za-z0-9_]+$/.test(value)) {
return cb('变量名只能输入英文字母、数字和下划线');
}
return cb(); return cb();
} }
@ -257,4 +254,4 @@ const AddGlobalVarModal = ({ visible, onOk, onChangeVisible, form }) => {
); );
}; };
export default AddGlobalVarModal; export default AddGlobalVarModal;
Loading…
Cancel
Save