mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 12:22:31 +02:00
Marginally better parsing of :set! preference names.
This commit is contained in:
1 parent
0064665749
commit
c3e76d9a51
1 file changed
+1
-1
@@ -1096,7 +1096,7 @@ var Options = Module("options", {
|
||||
}
|
||||
else {
|
||||
var [matches, name, postfix, valueGiven, operator, value] =
|
||||
arg.match(/^\s*?([^=]+?)([?&!])?\s*(([-+^]?)=(.*))?\s*$/);
|
||||
arg.match(/^\s*?((?:[^=\\']|\\.|'[^']*')+?)([?&!])?\s*(([-+^]?)=(.*))?\s*$/);
|
||||
reset = (postfix == "&");
|
||||
invertBoolean = (postfix == "!");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user