reaktor2: make : optional in pattern
This commit is contained in:
parent
f8d3ab8602
commit
a2a33b2450
@ -14,7 +14,7 @@ let
|
|||||||
confirmation=no
|
confirmation=no
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
pattern = "^${name}-([a-z]+)(?::\\s*(.*))?";
|
pattern = "^${name}-([a-z]+)(?::?\\s*(.*))?";
|
||||||
activate = "match";
|
activate = "match";
|
||||||
command = 1;
|
command = 1;
|
||||||
arguments = [2];
|
arguments = [2];
|
||||||
@ -76,7 +76,7 @@ let
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
pattern = ''^(\S+)\s+([+-][1-9][0-9]*)\s+(\S+)$'';
|
pattern = ''^([\w-]*):?\s+([+-][1-9][0-9]*)\s+(\S+)$'';
|
||||||
activate = "match";
|
activate = "match";
|
||||||
arguments = [1 2 3];
|
arguments = [1 2 3];
|
||||||
command = {
|
command = {
|
||||||
|
Loading…
Reference in New Issue
Block a user