From 843270834a9a3d81361c0e0e975956e2e8710cd2 Mon Sep 17 00:00:00 2001 From: Jag Talon Date: Mon, 18 Mar 2013 15:44:28 -0400 Subject: [PATCH] Added metadata to IPS. --- lib/DDG/Goodie/IPS.pm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/DDG/Goodie/IPS.pm b/lib/DDG/Goodie/IPS.pm index 21026d543..447ea7f97 100644 --- a/lib/DDG/Goodie/IPS.pm +++ b/lib/DDG/Goodie/IPS.pm @@ -5,7 +5,17 @@ use DDG::Goodie; zci is_cached => 1; zci answer_type => "ips"; -triggers query_nowhitespace_nodash => qr/^(E[MA]\d{9})(IN|HR|)$/xi; +primary_example_queries 'EM999999999IN'; +description 'Track a package from IPS'; +name 'IPS'; +code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IPS.pm'; +category 'ids'; +topics 'special_interest'; +attribution web => [ 'https://www.duckduckgo.com', 'DuckDuckGo' ], + github => [ 'https://github.com/duckduckgo', 'duckduckgo'], + twitter => ['http://twitter.com/duckduckgo', 'duckduckgo']; + +triggers query_nowhitespace_nodash => qr/(E[MA]\d{9})(IN|HR|)/xi; handle query_nowhitespace_nodash => sub { my $package_number = $1 . $2;