Merge pull request #3339 from jkohen/patch-1
[collectd.git] / contrib / wiki2changelog.pl
index 9631091..e6affa5 100755 (executable)
@@ -64,12 +64,12 @@ while (<>)
 
        $line =~ s#\{\{Plugin\|([^}]+)\}\}#$1 plugin#g;
        $line =~ s@\{\{Issue\|([^}]+)\}\}@#$1@g;
-       $line =~ s#\[\[[^|]+\|([^\]]+)\]\]#$1#g;
-       $line =~ s#\[\[([^|]+)\]\]#$1#g;
+       $line =~ s#\[\[[^|\]]+\|([^\]]+)\]\]#$1#g;
+       $line =~ s#\[\[([^|\]]+)\]\]#$1#g;
 
        $line =~ s#'''(.*?)'''#*$1*#g;
        $line =~ s#''(.*?)''#$1#g;
        $line =~ s#<code>(.*?)</code>#"$1"#gi;
 
-       print format_line($line);
+       print format_entry($line);
 }