1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 11:58:00 +01:00

fix incorrect character class in :set arg parser (Konstantin Stepanov)

This commit is contained in:
Doug Kearns
2008-07-16 15:26:36 +00:00
parent 63214ca210
commit 8a147eb0c6

View File

@@ -327,7 +327,7 @@ liberator.Options = function () //{{{
onlyNonDefault = true; onlyNonDefault = true;
} }
// 1 2 3 4 5 // 1 2 3 4 5
var matches = args.match(/^\s*?([a-zA-Z0-9\.\-_{}]+)([?&!])?\s*(([+-^]?)=(.*))?\s*$/); var matches = args.match(/^\s*?([a-zA-Z0-9\.\-_{}]+)([?&!])?\s*(([-+^]?)=(.*))?\s*$/);
var name = matches[1]; var name = matches[1];
var reset = false; var reset = false;
var invertBoolean = false; var invertBoolean = false;
@@ -380,7 +380,7 @@ liberator.Options = function () //{{{
} }
// 1 2 3 4 5 6 // 1 2 3 4 5 6
var matches = args.match(/^\s*(no|inv)?([a-z_]+)([?&!])?\s*(([+-^]?)=(.*))?\s*$/); var matches = args.match(/^\s*(no|inv)?([a-z_]+)([?&!])?\s*(([-+^]?)=(.*))?\s*$/);
if (!matches) if (!matches)
{ {
liberator.echoerr("E518: Unknown option: " + args); liberator.echoerr("E518: Unknown option: " + args);