Merge pull request #3339 from jkohen/patch-1
[collectd.git] / contrib / wiki2changelog.pl
index b8fc965..e6affa5 100755 (executable)
@@ -64,8 +64,8 @@ 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;