Marginally better parsing of :set! preference names.

This commit is contained in:
Kris Maglione committed 2011-09-07 07:29:01 -04:00
1 parent 0064665749
commit c3e76d9a51
1 file changed
+1 -1
+1 -1
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 == "!");
}