From 83139efed910a3c4e6e5c3e6214b88d42cd5f2e2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 21 Aug 2022 18:43:23 +0100 Subject: [PATCH] tolerate stalls whose names don't start with alphanumerics --- yarrg/Commods.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yarrg/Commods.pm b/yarrg/Commods.pm index fcd3eac..7f40610 100644 --- a/yarrg/Commods.pm +++ b/yarrg/Commods.pm @@ -434,8 +434,8 @@ sub check_tsv_line ($$) { defined $commods{$commod} or &$bad_data("unknown commodity ".errsan($commod)); - $stall =~ m/^\p{IsAlnum}/ or - &$bad_data("stall does not start with alphanumeric ".errsan($stall)); + $stall =~ m/\p{IsAlnum}/ or + &$bad_data("stall does not contain with alphanumeric".errsan($stall)); !exists $check_tsv_done{$commod,$stall} or &$bad_data("repeated data ".errsan($commod).",".errsan($stall)); $check_tsv_done{$commod,$stall}= 1; -- 2.30.2