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