Skip to content
Browse files

More clear sample of the problem

  • Loading branch information...
1 parent 29741c9 commit efed4dcfb5ac7ca2dbbf9b46d4af0243b38179b9 @Getty Getty committed Mar 10, 2013
Showing with 1 addition and 9 deletions.
  1. +1 −9 t/lib/DDGTest/Goodie/Changequery.pm
View
10 t/lib/DDGTest/Goodie/Changequery.pm
@@ -8,16 +8,8 @@ use DDG::Goodie;
triggers startend => 'duckduckgo','ios';
-# list of trigger words
-my $words = 'ios';
-
handle query_raw => sub {
- if (m/$words/i){
- my $query = $_;
- s/$words//ig;
- return $query if length $_ > 1;
- }
- return;
+ s/.+//ig;
};
1;

0 comments on commit efed4dc

Please sign in to comment.
Something went wrong with that request. Please try again.