From 42b085eeec629ef67a5f4e480e70deeb42fb7cde Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 8 Apr 2023 13:20:08 +0100 Subject: [PATCH] Normalise commodity name case (from uploads) --- yarrg/Commods.pm | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2