From e3df395a160426e3a6ec1505e949263acef07ceb Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 14 Nov 2009 15:21:07 +0000 Subject: [PATCH] Cope with ship names with spaces in --- yarrg/web/check_capacitystring | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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($_). -- 2.30.2