diff --git a/pacundo.pl b/pacundo.pl index 78949be..8f7c7e4 100755 --- a/pacundo.pl +++ b/pacundo.pl @@ -123,8 +123,8 @@ $n, $tx->{action}, $tx->{pkg_name} my @sel = split(' ', ); 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)); } }