X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-live.git;a=blobdiff_plain;f=yarrg%2Fweb%2Fcheck_capacitystring;h=e1f2da4cc5f12151a9341ee0dbb23dcc31b7a9a4;hp=b958dff46745e2ee4c4b3b8efdbaffce92c07c8b;hb=ea3cffe854b1c540bc68cd2218fdb2be732197fa;hpb=ad29b01fe6470a4b3bb108a8f485657927175e24;ds=sidebyside 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($_).