Fixed IP address regexp

pull/137/head
Hieromon Ikasamo 5 years ago
parent 82ed17489e
commit 70be65dfd1
  1. 2
      src/AutoConnectPage.cpp

@ -715,7 +715,7 @@ const char AutoConnect::_PAGE_CONFIGNEW[] PROGMEM = {
"<script type=\"text/javascript\">"
"window.onload=function(){"
"['sip','gw','nm','ns1','ns2'].forEach(function(n,o,t){"
"io=document.getElementById(n),io.placeholder='0.0.0.0',io.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]?)$'})"
"io=document.getElementById(n),io.placeholder='0.0.0.0',io.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]?)$'})"
"};"
"function onFocus(e){"
"document.getElementById('ssid').value=e,document.getElementById('passphrase').focus()"

Loading…
Cancel
Save