mirror of
https://github.com/emqx/neuron.git
synced 2026-10-25 11:26:32 +08:00
Merge pull request #689 from fengzeroz/main
plugin(modbus): use regular to validate the host in schema
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
"attribute": "required",
|
||||
"type": "string",
|
||||
"valid": {
|
||||
"regex": "/^((2[0-4]\\d|25[0-5]|[01]?\\d\\d?)\\.){3}(2[0-4]\\d|25[0-5]|[01]?\\d\\d?)$/",
|
||||
"length": 30
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user