diff --git a/lib/DDG/Goodie/HexToASCII.pm b/lib/DDG/Goodie/HexToASCII.pm index 1d9fcf86d..af215ef02 100644 --- a/lib/DDG/Goodie/HexToASCII.pm +++ b/lib/DDG/Goodie/HexToASCII.pm @@ -16,7 +16,7 @@ handle remainder => sub { my $value = $_; $value =~ s/^\s+//; $value =~ s/\s+$//; - $value =~ s/ (to|as|in)$//; + $value =~ s/ (?:to|as|in)$//i; if ($value =~ /^(?:[0\\]x)?([0-9a-f]+)$/i or $value =~ /^([0-9a-f]+)h?$/i) { my @digits = $1 =~ /(..)/g; my ($pure, $html, $count);