Skip to content
Browse files

fix percenterror

  • Loading branch information...
1 parent 9d72a38 commit 17b5ef6ccf9e297a5b34bc9cfeba5227c727820c @crazedpsyc crazedpsyc committed May 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/DDG/Goodie/PercentError.pm
View
4 lib/DDG/Goodie/PercentError.pm
@@ -9,9 +9,9 @@ zci is_cached => 1;
handle remainder => sub {
my $length = length($_);
- return unless $length == 2;
+#return unless $length == 2;
- my ( $acc, $exp ) = @_;
+ my ( $acc, $exp ) = split ' ', $_;
$acc =~ s/[{},;\s]+//g;
$exp =~ s/[{},;\s]+//g;
return unless $acc =~ /^-?\d+?(?:\.\d+|)$/ && $exp =~ /^-?\d+?(?:\.\d+|)$/;

0 comments on commit 17b5ef6

Please sign in to comment.
Something went wrong with that request. Please try again.