From: Ian Jackson Date: Sat, 8 Apr 2023 12:20:08 +0000 (+0100) Subject: Normalise commodity name case (from uploads) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=commitdiff_plain Normalise commodity name case (from uploads) --- diff --git a/yarrg/Commods.pm b/yarrg/Commods.pm index 7f40610..474f43f 100644 --- a/yarrg/Commods.pm +++ b/yarrg/Commods.pm @@ -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;