http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11494
Revision: 11494
Author: multichill
Date: 2013-05-04 16:42:21 +0000 (Sat, 04 May 2013)
Log Message:
-----------
Make the regex that checks the deletion log don't care about what case it is.
Modified Paths:
--------------
trunk/pywikipedia/commonscat.py
Modified: trunk/pywikipedia/commonscat.py
===================================================================
--- trunk/pywikipedia/commonscat.py 2013-05-04 16:06:08 UTC (rev 11493)
+++ trunk/pywikipedia/commonscat.py 2013-05-04 16:42:21 UTC (rev 11494)
@@ -523,7 +523,7 @@
(logpage, loguser, logtimestamp, logcomment) = logitem
# Some logic to extract the target page.
regex = u'moved to \[\[\:?Category:(?P<newcat1>[^\|\}]+)(\|[^\}]+)?\]\]|Robot: Changing Category:(.+) to Category:(?P<newcat2>.+)'
- m = re.search(regex, logcomment)
+ m = re.search(regex, logcomment, flags=re.I)
if m:
if m.group('newcat1'):
return self.checkCommonscatLink(m.group('newcat1'))