From 629bba34939d698f3fd3e01c22d4ef87d329f880 Mon Sep 17 00:00:00 2001 From: Daniel Bech Date: Sun, 1 May 2016 21:22:46 +0800 Subject: [PATCH] Now case insensitive popped a little 'i' in there, made the matching of to as in 0 or 1 --- lib/DDG/Goodie/HexToASCII.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);