Commit 984a48f9 authored by 涂伟's avatar 涂伟

fix: 'ip地址正则校验逻辑优化'

parent d2d5ff66
Pipeline #89760 failed with stages
......@@ -1181,7 +1181,8 @@ const DatabaseInitialization = props => {
rules={[
{
validator: (rule, value) => {
let regCn = /^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)$/;
// let regCn = /^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)$/;
let regCn = /^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)(?:,[0-9]{1,5})?$/;
if (form.getFieldValue().ip == '') {
return Promise.reject('ip必填');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment