Fix selection regex.

Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
This commit is contained in:
Nicolás A. Ortega Froysa 2024-03-11 20:02:59 +01:00
parent 4cb213d585
commit e11cc694f5

View File

@ -123,8 +123,8 @@ $n, $tx->{action}, $tx->{pkg_name}
my @sel = split(' ', <STDIN>);
foreach my $i (@sel) {
if ($i =~ /[0-9]+-[0-9]+/) {
my ($start, $end) = $i =~ /([0-9]+)-([0-9+])/;
if ($i =~ /^[0-9]+-[0-9]+$/) {
my ($start, $end) = $i =~ /^([0-9]+)-([0-9]+)$/;
push(@sel, ($start..$end));
}
}