Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Revision:
144:7106252b7abf
Parent:
143:cc2e148cb96a
Child:
145:d2bd78be00b2
--- a/base/net/web-net-script.inc	Sat Dec 26 19:38:40 2020 +0000
+++ b/base/net/web-net-script.inc	Sat Dec 26 20:02:22 2020 +0000
@@ -62,6 +62,11 @@
 "    dns += fields[4];\n"
 "    dns += '\\r\\n';\n"
 "}\n"
+"function parseDnsLines(text)\n"
+"{\n"
+"    dns = '';\n"
+"    text.split('\\n').forEach(parseDnsLine);\n"
+"}\n"
 "function parseGenLines(text)\n"
 "{\n"
 "    let lines = text.split('\\n');\n"