diff --git a/files/app/main/status/e/dhcp.ut b/files/app/main/status/e/dhcp.ut index 588be828..10b8ad60 100755 --- a/files/app/main/status/e/dhcp.ut +++ b/files/app/main/status/e/dhcp.ut @@ -142,9 +142,10 @@ if (f) { f = fs.open(dhcp.dhcptags); if (f) { for (let l = f.read("line"); length(l); l = f.read("line")) { - const m = match(trim(l), /^(.+) (.+) (.+)$/); + const m = match(replace(l, /\n+$/, ""), /^([^\W_]+)\s(\w+)\s(.+)$/); if (m) { - push(advtags, { name: m[1], type: m[2], match: m[3] }); + const p = replace(replace(replace(m[3], /"/g, """), //g, ">"); + push(advtags, { name: m[1], type: m[2], match: p }); } } f.close(); @@ -152,7 +153,7 @@ if (f) { f = fs.open(dhcp.dhcpoptions); if (f) { for (let l = f.read("line"); length(l); l = f.read("line")) { - const m = match(trim(l), /^(.*) (force|onrequest) ([0-9]+) (.+)$/); + const m = match(replace(l, /\n+$/, ""), /^(\S*)\s(force|onrequest)\s(\d+)\s(.+)$/); if (m) { push(advoptions, { name: m[1], always: m[2] === "force", type: int(m[3]), value: m[4] }); } @@ -266,8 +267,8 @@ if (f) { - - + + @@ -567,7 +568,7 @@ if (f) { switch (target.innerText) { case "+": const item = document.createElement("div"); - item.innerHTML = `