diff --git a/urltitles.pl b/urltitles.pl index 0fb9d57..cff9ada 100644 --- a/urltitles.pl +++ b/urltitles.pl @@ -32,7 +32,7 @@ sub message_public { while ($msg =~ m/\G(\S+)(\s*)/g) { ($word, $ws) = ($1, $2); # word, whitespace - next unless ($word =~ /^$regex$/g); + next unless ($word =~ /^$regex$/); $word = "http://$word" unless ( $word =~ qr(^https?://) ); eval{ $response = $ua->get($word) };