Permalink
Browse files

Add "TO" as alias for "INTO".

  • Loading branch information...
1 parent 747be55 commit c8ef5a9529c82a71f5738905e77504e712317bb5 @xfix committed Sep 28, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/DDG/Goodie/TimezoneConverter.pm
  2. +2 −2 t/TimezoneConverter.t
@@ -6,7 +6,7 @@ use warnings;
use DDG::Goodie;
use POSIX qw(fmod);
-triggers any => qw(in into);
+triggers any => qw(in into to);
zci is_cached => 1;
zci answer_type => 'timezone_converter';
@@ -106,7 +106,7 @@ handle query => sub {
# Spaces
\s+
# in keywords
- (?: IN (?: TO )? )
+ (?: IN (?: TO )? | TO )
# Spaces
\s+
# Output timezone
View
@@ -10,9 +10,9 @@ zci is_cached => 1;
ddg_goodie_test(
['DDG::Goodie::TimezoneConverter'],
- '3:14 into GMT' =>
+ '3:14 in GMT' =>
test_zci('3:14 (UTC) is 3:14 (GMT).'),
- '8:10 A.M. AZOST into CAT' =>
+ '8:10 A.M. AZOST to CAT' =>
test_zci('8:10 (AZOST, UTC-1) is 11:10 (CAT, UTC+2).'),
'1pm EDT into UTC+2' =>
test_zci('13:00 (EDT, UTC-4) is 19:00 (UTC+2).'),

0 comments on commit c8ef5a9

Please sign in to comment.