1
0
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:
Kris Maglione
2011-09-07 07:29:01 -04:00
parent 0064665749
commit c3e76d9a51

View File

@@ -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 == "!");
}