fix test to support rel=
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 30 May 2008 21:12:32 +0000 (17:12 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 30 May 2008 21:12:32 +0000 (17:12 -0400)
t/linkify.t

index 6922df343d5bd70e1a94f9f114ff2b129a9dbc25..6dff0a02954a7c61b5d05fc79a994d1486d2e005 100755 (executable)
@@ -45,7 +45,7 @@ sub links_to ($$) {
        my $link=shift;
        my $content=shift;
        
-       if ($content =~ m!<a href="[^"]*\Q$link\E[^"]*">!) {
+       if ($content =~ m!<a href="[^"]*\Q$link\E[^"]*"\s*[^>]*>!) {
                return 1;
        }
        else {