]> git.donarmstrong.com Git - debbugs.git/commitdiff
Fix pluralising the Tag/Usertag headers
authorPaul Wise <pabs@debian.org>
Sun, 28 Feb 2021 01:59:52 +0000 (09:59 +0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 11 Mar 2021 00:38:28 +0000 (16:38 -0800)
The match was on the lowercase version header names but
the lowercasing happened after the header name match.

scripts/process

index 265bd5835b6fb2f96e671fef5895cd409b7401c4..1f40901573da4f35d1e4e2ebf532d2c563f00c3e 100755 (executable)
@@ -234,9 +234,9 @@ for my $phline (@bodylines)
     my ($fn, $fv) = ($1, $2);
     $fv =~ s/\s*$//;
     # pluralize tag/usertag
+    $fn = lc $fn;
     $fn = $fn.'s' if $fn =~ /^(?:tag|usertag)$/;
     print {$debugfh} ">$fn|$fv|\n";
-    $fn = lc $fn;
     if ($fn =~ /^control$/) {
        push @control_bits,$fv;
     } else {