Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

html fix for un

  • Loading branch information...
commit 781e5fa50e96c73993e6928f8942f2b92f0f8818 1 parent 9b3fbd7
@hunterlang hunterlang authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/DDG/Goodie/UN.pm
View
4 lib/DDG/Goodie/UN.pm
@@ -8,10 +8,12 @@ use constant WPHREF => "http://en.wikipedia.org/wiki/List_of_UN_numbers_%04d_to_
triggers start => 'un';
+zci answer_type => 'united_nations';
+
handle remainder => sub {
my $num = shift or return;
my %un = get_un($num) or return;
- return sprintf qq(%s (<a href="%s">UN Number %04d</a>)), $un{description}, wphref($num), $num;
+ return (sprintf qq(%s (UN Number %04d)), $un{description}, $num), html => sprintf qq(%s (<a href="%s">UN Number %04d</a>)), $un{description}, wphref($num), $num;
};
# Wikipedia attribution per CC-BY-SA
Please sign in to comment.
Something went wrong with that request. Please try again.