Merge pull request #689 from fengzeroz/main

plugin(modbus): use regular to validate the host in schema
This commit is contained in:
fengzeroz
2022-08-04 11:20:15 +08:00
committed by GitHub
+1
View File
@@ -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
}
},