diff --git a/lib/DDG/Goodie/DuckDuckGo.pm b/lib/DDG/Goodie/DuckDuckGo.pm index 184fd9b5c..9d2cec92e 100644 --- a/lib/DDG/Goodie/DuckDuckGo.pm +++ b/lib/DDG/Goodie/DuckDuckGo.pm @@ -74,19 +74,19 @@ my %data_html = ( stickers => "Thanks for the support! Check out the DuckDuckGo store for t-shirts, stickers, and other items.", duck => "Dax
I am the duck. Dax the duck.", dax => "Dax
I am the duck. Dax the duck.", - irc => "DuckDuckGo's official IRC channel is #duckduckgo on irc.freenode.net", + irc => "DuckDuckGo's official IRC channel is #duckduckgo on irc.freenode.net", remove => "To remove DuckDuckGo from your browser, take a look here. Please let us know why you are leaving!", removing => "To remove DuckDuckGo from your browser, take a look here. Please let us know why you are leaving!", removal => "To remove DuckDuckGo from your browser, take a look here. Please let us know why you are leaving!", (map { $_ => "Zero Click Info is the term DuckDuckGo uses for these boxes, which often provide useful instant answers above traditional results.", - } "zeroclickinfo", "zeroclick", "0click", "0clickinfo", "zero 0") + } "zeroclickinfo", "zeroclick", "0click", "0clickinfo", "zero 0", "zero click info", "zero-click info") ); zci is_cached => 1; handle remainder => sub { - if(defined $data_html{$_}) { - return "", html => $data_html{$_}; + if(defined $data_html{lc $_}) { + return "", html => $data_html{lc $_}; } return; }; diff --git a/t/DuckDuckGo.t b/t/DuckDuckGo.t index 6eee34b81..fcc102a18 100644 --- a/t/DuckDuckGo.t +++ b/t/DuckDuckGo.t @@ -12,10 +12,10 @@ ddg_goodie_test( [qw( DDG::Goodie::DuckDuckGo )], - 'Zero-Click Info' => test_zci("Zero Click Info is the term DuckDuckGo uses for these boxes, which often provide useful instant answers above traditional results."), - 'zeroclick' => test_zci("Zero Click Info is the term DuckDuckGo uses for these boxes, which often provide useful instant answers above traditional results."), - 'help' => test_zci("DuckDuckGo's help website: http://dukgo.com/help/", html => "DuckDuckGo's help website: http://dukgo.com/help/"), - 'duckduckgo irc' => test_zci("DuckDuckGo's official IRC channel is #duckduckgo on irc.freenode.net", html => "DuckDuckGo's official IRC channel is #duckduckgo on irc.freenode.net"), + 'duckduckgo Zero-Click Info' => test_zci("", html => "Zero Click Info is the term DuckDuckGo uses for these boxes, which often provide useful instant answers above traditional results."), + 'ddg zeroclick' => test_zci("", html => "Zero Click Info is the term DuckDuckGo uses for these boxes, which often provide useful instant answers above traditional results."), +# 'duckduckgo help' => test_zci("DuckDuckGo's help website: http://dukgo.com/help/", html => "DuckDuckGo's help website: http://dukgo.com/help/"), + 'duckduckgo irc' => test_zci("", html => "DuckDuckGo's official IRC channel is #duckduckgo on irc.freenode.net"), irc => undef, );