From: Ian Jackson Date: Sat, 14 Nov 2009 15:21:07 +0000 (+0000) Subject: Cope with ship names with spaces in X-Git-Tag: 5.6^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.main.git;a=commitdiff_plain;h=e3df395a160426e3a6ec1505e949263acef07ceb Cope with ship names with spaces in --- diff --git a/yarrg/web/check_capacitystring b/yarrg/web/check_capacitystring index b958dff..e1f2da4 100644 --- a/yarrg/web/check_capacitystring +++ b/yarrg/web/check_capacitystring @@ -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($_).