Revision: 4273 Author: wikipedian Date: 2007-09-13 16:40:01 +0000 (Thu, 13 Sep 2007)
Log Message: ----------- "# REDIRECT [[foo]]" is also detected as a redirect by MediaWiki.
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-09-13 15:26:07 UTC (rev 4272) +++ trunk/pywikipedia/wikipedia.py 2007-09-13 16:40:01 UTC (rev 4273) @@ -4019,7 +4019,7 @@ # A redirect starts with hash (#), followed by a keyword, then # arbitrary stuff, then a wikilink. The link target ends before # either a | or a ]. - return re.compile(r'#' + redirKeywordsR + '.*?[[(.*?)(?:]||)', re.IGNORECASE | re.UNICODE | re.DOTALL) + return re.compile(r'# *' + redirKeywordsR + '.*?[[(.*?)(?:]||)', re.IGNORECASE | re.UNICODE | re.DOTALL)
# The following methods are for convenience, so that you can access # methods of the Family class easier.