switch from currency chat to special handler

master
puskin94 2015-04-24 13:22:59 +02:00
parent e7764493b0
commit 272b86b03d
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ triggers query_nowhitespace => qr/\d{1,3}\%$/;
handle query_nowhitespace => sub {
return unless $_ =~ qr/^(?:\$|\€|\£)*\s*(\d+\.?\d*)\s*(\+|\*|\/|\-)\s*(\d+\.?\d*)\%$/;
return unless $_ =~ qr/^(?:\p{Currency_Symbol})*\s*(\d+\.?\d*)\s*(\+|\*|\/|\-)\s*(\d+\.?\d*)\%$/;
my $partRes = ($1 * $3) / 100;