chiark / gitweb /
tolerate stalls whose names don't start with alphanumerics
[ypp-sc-tools.db-test.git] / 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;