From 523d029fdc71e84a932d8b2ecfb718765463f670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?GOLDERWEB=20=E2=80=93=20Jonathan=20Golder?= Date: Sat, 19 Sep 2015 19:45:34 +0200 Subject: [PATCH] Fix bug causing db table cells containing empty strings --- redfam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redfam.py b/redfam.py index 0a23315..3bc68a0 100644 --- a/redfam.py +++ b/redfam.py @@ -205,7 +205,7 @@ class RedFamParser( RedFam ): """ # Predefine a pattern for wikilinks' destination - wikilink_pat = re.compile( r"\[\[([^\[\]\|]*)(\]\]|\|)" ) + wikilink_pat = re.compile( r"\[\[([^\[\]\|]+)(?:\]\]|\|)" ) # Parse content of heading for generating section links later match = type( self ).__sectionhead_pat.search( heading )