changeset 163:cba3a31595c7

Fixed formatting of absolute wiki links.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 12 Jan 2014 00:22:59 -0800
parents 81e39ae8aef0
children a4a64d6b66cb
files wikked/formatter.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wikked/formatter.py	Sun Jan 12 00:22:28 2014 -0800
+++ b/wikked/formatter.py	Sun Jan 12 00:22:59 2014 -0800
@@ -141,7 +141,7 @@
             a, b = m.group(1, 2)
             url = b if a is None else (a + b)
             return s._formatWikiLink(ctx, b, url)
-        text = re.sub(r'\[\[([^\]]+/)?([^\]]+)\]\]', repl4, text)
+        text = re.sub(r'\[\[([^\]]*/)?([^/\]]+)\]\]', repl4, text)
 
         return text