2013-02-23 | Paul Boddie | raw files shortlog changelog graph | Attempt to find a reliable initial character for image declarations. | |
wikiparser.py (file) |
1.1 --- a/wikiparser.py Sat Feb 23 00:56:17 2013 +0100 1.2 +++ b/wikiparser.py Sat Feb 23 01:03:23 2013 +0100 1.3 @@ -164,7 +164,7 @@ 1.4 1.5 monospace_regexp_str = r"{{(?P<monotext>.*?)}}" 1.6 link_regexp_str = r"[[](?P<linktext>.*?)]" 1.7 -image_regexp_str = r"!(?P<imagetext>\S.*?)!" 1.8 +image_regexp_str = r"!(?P<imagetext>\w.*?)!" 1.9 1.10 # Word-dependent patterns. 1.11 # Here, the unbracketed markers must test for the absence of surrounding word