Fix selection regex.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
This commit is contained in:
parent
4cb213d585
commit
e11cc694f5
@ -123,8 +123,8 @@ $n, $tx->{action}, $tx->{pkg_name}
|
|||||||
my @sel = split(' ', <STDIN>);
|
my @sel = split(' ', <STDIN>);
|
||||||
|
|
||||||
foreach my $i (@sel) {
|
foreach my $i (@sel) {
|
||||||
if ($i =~ /[0-9]+-[0-9]+/) {
|
if ($i =~ /^[0-9]+-[0-9]+$/) {
|
||||||
my ($start, $end) = $i =~ /([0-9]+)-([0-9+])/;
|
my ($start, $end) = $i =~ /^([0-9]+)-([0-9]+)$/;
|
||||||
push(@sel, ($start..$end));
|
push(@sel, ($start..$end));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user