feat(event): 事件标识增加正则限制

feature
钟良源 4 weeks ago
parent 8fcf17568b
commit 4a320f62f2

@ -97,6 +97,9 @@ 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();
} }

Loading…
Cancel
Save