mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:52:26 +01:00
fix incorrect character class in :set arg parser (Konstantin Stepanov)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user