Changed IP address regular expression

pull/137/head
Hieromon Ikasamo 5 years ago
parent dde5306cbd
commit 042e9300a1
  1. 8
      examples/ConfigIP/ConfigIP.ino

@ -63,28 +63,28 @@ static const char AUX_CONFIGIP[] PROGMEM = R"(
"name": "staip", "name": "staip",
"type": "ACInput", "type": "ACInput",
"label": "IP", "label": "IP",
"pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", "pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$",
"global": true "global": true
}, },
{ {
"name": "gateway", "name": "gateway",
"type": "ACInput", "type": "ACInput",
"label": "Gateway", "label": "Gateway",
"pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", "pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$",
"global": true "global": true
}, },
{ {
"name": "netmask", "name": "netmask",
"type": "ACInput", "type": "ACInput",
"label": "Netmask", "label": "Netmask",
"pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", "pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$",
"global": true "global": true
}, },
{ {
"name": "dns1", "name": "dns1",
"type": "ACInput", "type": "ACInput",
"label": "DNS", "label": "DNS",
"pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", "pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$",
"global": true "global": true
}, },
{ {

Loading…
Cancel
Save