mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
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:
1 parent
c9f6362da5
commit
23c8b2a8b3
1 file changed
+3
-3
+3
-3
@@ -804,9 +804,9 @@ var CONF_CMDS=[
|
|||||||
/^ntp\s+timezone\s+[+-]?\d{1,2}(:\d{2})?$/,
|
/^ntp\s+timezone\s+[+-]?\d{1,2}(:\d{2})?$/,
|
||||||
/^ntp\s+dst\s+(off|eu|us)$/,
|
/^ntp\s+dst\s+(off|eu|us)$/,
|
||||||
/^passwd\s+\S+$/,/^hostname\s+\S{1,23}$/,
|
/^passwd\s+\S+$/,/^hostname\s+\S{1,23}$/,
|
||||||
/^vlan\s+\d+\s+(d|mgmt)$/,
|
/^vlan\s+\d+\s+(d|mgmt)$/m,
|
||||||
/^vlan\s+\d+(\s+[a-zA-Z]\w*)?(\s+\d+t?)*$/,
|
/^vlan\s+\d+(\s+[a-zA-Z]\w*)?(\s+\d+t?)*$/m,
|
||||||
/^pvid\s+\d+\s+\d+$/,
|
/^pvid\s+\d+\s+\d+$/m,
|
||||||
/^ingress(\s+\d+[tua])+$/,/^ingress\s+[tua]$/,
|
/^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+(10m|100m|1g|2g5|5g|10g|auto|on|off)(\s+(half|full))?$/,
|
||||||
/^port\s+\d+\s+name\s+\S+$/,
|
/^port\s+\d+\s+name\s+\S+$/,
|
||||||
|
|||||||
Reference in new issue
Block a user