Skip to content

Commit

Permalink
Handle twitter.com/@username.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Sep 16, 2016
1 parent 159d775 commit c5a39bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.rb
Expand Up @@ -52,7 +52,7 @@
return "Unsupported url. Sorry."
elsif /twitter\.com\/hashtag\// =~ params[:q]
return "This app does not support hashtags. Sorry."
elsif /twitter\.com\/(?:#!\/)?(?<user>[^\/?#]+)/ =~ params[:q]
elsif /twitter\.com\/(?:#!\/|@)?(?<user>[^\/?#]+)/ =~ params[:q]
# https://twitter.com/#!/infected
# https://twitter.com/infected
else
Expand Down

0 comments on commit c5a39bf

Please sign in to comment.