mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-16 02:53:32 +01:00
Marginally better parsing of :set! preference names.
This commit is contained in:
@@ -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