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;