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
This commit is contained in:
Rob Emery committed 2026-10-25 09:06:30 +00:00
1 parent c9f6362da5
commit 23c8b2a8b3
1 file changed
+3 -3
+3 -3
View File
@@ -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+$/,