]> git.donarmstrong.com Git - debian-ctte.git/commitdiff
add missing newline to failure output; > is the proper relationship, not <
authorDon Armstrong <don@donarmstrong.com>
Tue, 10 Mar 2015 19:29:04 +0000 (12:29 -0700)
committerDon Armstrong <don@donarmstrong.com>
Tue, 10 Mar 2015 19:29:04 +0000 (12:29 -0700)
scripts/pocket-devotee

index 5eb9e7b1b87ee2e86819ed1b2e4ee03142f38862..6046aa99a44fc0420ee0b95303e2afb90a87b636 100755 (executable)
@@ -188,7 +188,7 @@ sub winner {
       } elsif (m/^(.+) # the voter, can have spaces
                  \s*:\s+ # needs a colon and a space
                  ((?:[$valid_options] # the vote
-                         \s*(?:,|=|<)?\s*)*) # allow < and , or =
+                         \s*(?:,|=|>)?\s*)*) # allow > and , or =
                  \s*$/x # useless trailing spaces
               ) {
           $voter = $1;
@@ -199,7 +199,7 @@ sub winner {
           my $current_rank = 1;
           my %option_rank;
           while ($vote =~ /([$valid_options]) # the vote
-                           \s*((?:,|=|<)?)\s*/xg) {
+                           \s*((?:,|=|>)?)\s*/xg) {
               my ($option,$relationship) = ($1,$2);
               $option_rank{$option} = $current_rank;
               if ($relationship ne '=') {
@@ -213,7 +213,7 @@ sub winner {
           print {$RESULTS} "V: $vote $voter\n";
 
       } else {
-         print STDERR "ignoring line '$_'; this is probably wrong!";
+         print STDERR "ignoring line '$_'; this is probably wrong!\n";
          next;
       }