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