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 b958dff46745e2ee4c4b3b8efdbaffce92c07c8b..e1f2da4cc5f12151a9341ee0dbb23dcc31b7a9a4 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($_).