Fixed and closed #437: empty links are now properly ignored.

This commit is contained in:
Dario Solera 2010-01-03 17:27:17 +00:00
parent 2324c78c36
commit a716310df3
2 changed files with 3 additions and 3 deletions

View file

@ -423,7 +423,7 @@ namespace ScrewTurn.Wiki {
// [], [[]] and [[] can occur when empty links are processed
if(match.Value.Equals("[]") || match.Value.Equals("[[]]") || match.Value.Equals("[[]")) {
end += 2;
sb.Remove(match.Index, match.Length);
match = LinkRegex.Match(sb.ToString(), end);
continue; // Prevents formatting emtpy links
}