Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
allow queries "@username" or "twitter username"
Browse files Browse the repository at this point in the history
  • Loading branch information
FloEdelmann authored and majuscule committed Jun 10, 2012
1 parent d7eef50 commit fcd416b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DDG/Spice/Twitter.pm
Expand Up @@ -4,7 +4,7 @@ use DDG::Spice;

spice to => 'http://twitter.com/status/user_timeline/$1.json?callback={{callback}}';

triggers query_lc => qr/^@([^\s]+)$/;
triggers query_lc => qr/^(?:@|twitter\s+)([^\s]+)$/;

handle matches => sub {
my ($uname) = @_;
Expand Down

0 comments on commit fcd416b

Please sign in to comment.