chiark / gitweb /
Normalise commodity name case (from uploads)
[ypp-sc-tools.web-live.git] / yarrg / Commods.pm
index 7f4061048c5e7360c4be9a62197d13d335ee76ff..474f43fb86ba3734dc0171331656383a592aca17 100644 (file)
@@ -427,6 +427,7 @@ sub check_tsv_line ($$) {
     $l =~ m/[\t [:graph:]]/ or &$bad_data('nonprinting char(s) '.sprintf "%#x", ord $&);
     my @v= split /\t/, $l, -1;
     @v==6 or &$bad_data('wrong number of fields');
+    $v[0] = ucfirst lc $v[0]; # YPP anomalously has "Rum Spice"
     $v[1] =~ s/^\s+//; $v[1] =~ s/\s+$//; # ooo don't check :-(
     my ($commod,$stall) = @v;