Skip to content

Commit

Permalink
only print tiny url if url is over 40 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Mar 29, 2016
1 parent 6025bae commit 149a527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/short_url.pl
Expand Up @@ -7,7 +7,7 @@

my $message = join(' ', @ARGV);
my ($url) = $message =~ /$RE{URI}{-keep}/;
if ($url) {
if ($url && length($url) >= 40) {
my $short_url = makeashorterlink($url);
print $short_url;
}

0 comments on commit 149a527

Please sign in to comment.