]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
web commit by mdubs
[ikiwiki.git] / IkiWiki.pm
index 1c15e9299bd0774255b89eaf080b79e54af1a481..1c87831879afd5f154983123d3da1b7b188758ee 100644 (file)
@@ -39,7 +39,7 @@ sub defaultconfig () { #{{{
        wiki_link_regexp => qr{
                \[\[                    # beginning of link
                (?:
-                       ([^\]\|\n]+)    # 1: link text
+                       ([^\]\|\n\s]+)  # 1: link text
                        \|              # followed by '|'
                )?                      # optional
                
@@ -1223,7 +1223,7 @@ sub match_link ($$;@) { #{{{
                                if $bestlink eq IkiWiki::bestlink($page, $p);
                }
                else {
-                       return IkiWiki::SuccessReason->new("$page links to page matching $link")
+                       return IkiWiki::SuccessReason->new("$page links to page $p matching $link")
                                if match_glob($p, $link, %params);
                }
        }