Fixed and closed #437: empty links are now properly ignored.
This commit is contained in:
parent
2324c78c36
commit
a716310df3
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue