chiark / gitweb /
tolerate stalls whose names don't start with alphanumerics origin/unstable
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Aug 2022 17:43:23 +0000 (18:43 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Aug 2022 17:43:23 +0000 (18:43 +0100)
yarrg/Commods.pm

index fcd3eacfff221733c1038754c66b80984be09ea1..7f4061048c5e7360c4be9a62197d13d335ee76ff 100644 (file)
@@ -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;