From 272b86b03df91f47f546c51d3341321b237e64ea Mon Sep 17 00:00:00 2001 From: puskin94 Date: Fri, 24 Apr 2015 13:22:59 +0200 Subject: [PATCH] switch from currency chat to special handler --- lib/DDG/Goodie/PercentOf.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DDG/Goodie/PercentOf.pm b/lib/DDG/Goodie/PercentOf.pm index b84d4297c..0efa5c597 100644 --- a/lib/DDG/Goodie/PercentOf.pm +++ b/lib/DDG/Goodie/PercentOf.pm @@ -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;