From 23c8b2a8b3804105aebe8309915ffc17c2459d8a Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Sat, 24 Oct 2026 10:13:08 +0100 Subject: [PATCH] Fixing the unsaved changes not appearing. Previously if a set of changes were sent as a single cmd using \n separation then the dirty regex would skip it as $ wouldn't match \n. with /m modifier the regex will match --- html/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/app.js b/html/app.js index b47aca4f..226c60f6 100644 --- a/html/app.js +++ b/html/app.js @@ -804,9 +804,9 @@ var CONF_CMDS=[ /^ntp\s+timezone\s+[+-]?\d{1,2}(:\d{2})?$/, /^ntp\s+dst\s+(off|eu|us)$/, /^passwd\s+\S+$/,/^hostname\s+\S{1,23}$/, - /^vlan\s+\d+\s+(d|mgmt)$/, - /^vlan\s+\d+(\s+[a-zA-Z]\w*)?(\s+\d+t?)*$/, - /^pvid\s+\d+\s+\d+$/, + /^vlan\s+\d+\s+(d|mgmt)$/m, + /^vlan\s+\d+(\s+[a-zA-Z]\w*)?(\s+\d+t?)*$/m, + /^pvid\s+\d+\s+\d+$/m, /^ingress(\s+\d+[tua])+$/,/^ingress\s+[tua]$/, /^port\s+\d+\s+(10m|100m|1g|2g5|5g|10g|auto|on|off)(\s+(half|full))?$/, /^port\s+\d+\s+name\s+\S+$/,