Skip to content

Commit

Permalink
Look for   in addition to whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
l8nite committed Sep 1, 2011
1 parent da5da12 commit 115f76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PipSqueek/Plugin/Currency.pm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ sub multi_money
my $results = $response->content();

# get the exchange rate and do the math ourselves
my ($factor) = $results =~ m/1 $from = ([\d\.\,]+) $to/i;
my ($factor) = $results =~ m/1(?:\s|\ )*$from(?:\s|\ )*=(?:\s|\ )*([\d\.\,]+)(?:\s|\ )*$to/i;
$factor =~ s/,//g;

my $a = $amount;
Expand Down

0 comments on commit 115f76a

Please sign in to comment.