X-Git-Url: https://code.th-h.de/?p=usenet%2Fusevote.git;a=blobdiff_plain;f=uvvote.pl;h=a151250695aac55fa3408196fc08f7dc4e9bad35;hp=c101f1f7f0ec8d13da40346be6a0f17024e9dd10;hb=a7ea02d5923c106e8a1e597d399262ed615a1704;hpb=7233d81f302404ac9f842127ccf8d268d6df0cb2 diff --git a/uvvote.pl b/uvvote.pl index c101f1f..a151250 100755 --- a/uvvote.pl +++ b/uvvote.pl @@ -271,7 +271,7 @@ sub process_vote { } # this matches on a single appearance: - if ($$body =~ /#$votenum\W*?\[(.+)\]/) { + if ($$body =~ /#$votenum\W*?\[(.+?)\]/) { # one or more vote strings were found $onevote ||= 1; # set $onevote to 1 if it was 0 my $votestring = $1;