mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-18 21:02:33 +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 {
|
else {
|
||||||
var [matches, name, postfix, valueGiven, operator, value] =
|
var [matches, name, postfix, valueGiven, operator, value] =
|
||||||
arg.match(/^\s*?([^=]+?)([?&!])?\s*(([-+^]?)=(.*))?\s*$/);
|
arg.match(/^\s*?((?:[^=\\']|\\.|'[^']*')+?)([?&!])?\s*(([-+^]?)=(.*))?\s*$/);
|
||||||
reset = (postfix == "&");
|
reset = (postfix == "&");
|
||||||
invertBoolean = (postfix == "!");
|
invertBoolean = (postfix == "!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user