chiark / gitweb /
Cope with ship names with spaces in
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 14 Nov 2009 15:21:07 +0000 (15:21 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 14 Nov 2009 15:21:07 +0000 (15:21 +0000)
yarrg/web/check_capacitystring

index b958dff..e1f2da4 100644 (file)
@@ -130,7 +130,7 @@ my $parse_term= sub {
                        $_ *= $pct / 100.0;
                }
                push @canon, sprintf "%g%%", $pct;
-       } elsif (!m/[^a-z]/i) {
+       } elsif (!m/[^a-z ]/i) {
                $debugf->("TERM NAME");
                expected_error("Name (should be unit or commodity)".
                                escerrq($_).