Navigation Menu

Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Commit

Permalink
fix URL detection
Browse files Browse the repository at this point in the history
  • Loading branch information
genehack committed Jan 2, 2012
1 parent f08917e commit 3ccaf05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/App/StatusSkein/CLI/Post/Twitter.pm
Expand Up @@ -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 );
Expand Down

0 comments on commit 3ccaf05

Please sign in to comment.