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
|
@ -16,5 +16,5 @@ using System.Reflection;
|
|||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("3.0.1.449")]
|
||||
[assembly: AssemblyFileVersion("3.0.1.449")]
|
||||
[assembly: AssemblyVersion("3.0.1.450")]
|
||||
[assembly: AssemblyFileVersion("3.0.1.450")]
|
||||
|
|
|
@ -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