Permalink
Browse files

fix URL detection

  • Loading branch information...
1 parent f08917e commit 3ccaf0514c0a0aaaf90cf5f99842588b3c67b6cc @genehack committed Jan 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/App/StatusSkein/CLI/Post/Twitter.pm
@@ -34,7 +34,7 @@ class App::StatusSkein::CLI::Post::Twitter extends App::StatusSkein::CLI::Post {
my $text = $self->text;
$text = $self->linkify_text( $text );
- $text =~ s|(\A\| )\@([_a-zA-Z0-9]+)|$1<a target=_blank href=http://twitter.com/$2>\@$2</a>|g;
+ $text =~ s|\@([_a-zA-Z0-9]+)|<a target=_blank href=http://twitter.com/$1>\@$1</a>|g;
$text =~ s|(\A\| )\#(\S+)|$1<a target=_blank href="http://twitter.com/#search?q=%23$2">#$2</a>|g;
$self->_set_text( $text );

0 comments on commit 3ccaf05

Please sign in to comment.