[Pywikipedia-l] SVN: [6100] trunk/pywikipedia/welcome.py

filnik at svn.wikimedia.org filnik at svn.wikimedia.org
Sat Nov 15 20:54:53 UTC 2008


Revision: 6100
Author:   filnik
Date:     2008-11-15 20:54:53 +0000 (Sat, 15 Nov 2008)

Log Message:
-----------
Bugfix

Modified Paths:
--------------
    trunk/pywikipedia/welcome.py

Modified: trunk/pywikipedia/welcome.py
===================================================================
--- trunk/pywikipedia/welcome.py	2008-11-15 13:20:36 UTC (rev 6099)
+++ trunk/pywikipedia/welcome.py	2008-11-15 20:54:53 UTC (rev 6100)
@@ -419,10 +419,10 @@
     # and i put them in a list (i find it more easy and secure).
 
     # XXX: That's the regex, if there are problems, take a look here.
-
     reg =  u'\(<a href=\"' + re.escape(wsite.path())
     reg += u'\?title=%s(?P<user>.*?)&(?:amp;|)action=(?:edit|editredlink|edit&amp;redlink=1)\"' % re.escape(talk)
-    reg += u'.*?\) (?P<reason>.*?) . </li>'
+    reg += u'.*?</span> (?P<reason>.*?) *?</li>'
+
     p = re.compile(reg, re.UNICODE)
 
     for x in p.finditer(raw):





More information about the Pywikipedia-l mailing list