Revision: 6374 Author: nicdumz Date: 2009-02-19 01:48:35 +0000 (Thu, 19 Feb 2009)
Log Message: ----------- * Adding possibility to use a 'nocase' dictionary parameter in fixes.py * Making the .yu tld fix case-insensitive
(End of relevant commit message) public key to add: ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3k9HfYYI5Xks506CNfob6MSpage9iL309tCpxBgrJqdZRBitM/0FN2XFxolxKntej4gUxf/fJHzu2zL6w/lclxLIGlMteXBpsW1ciuBvbKydxLCKEnZtIrRwWnI9WP0ZuUz+UjdhpgGLCGXnVMJzhJKkEtXv/I3Ee3NtJaR85ub6FnFk2KPGqoUgF+vPnXD9mCUYT2kCIDu6Dh7UC5Ns4sZqxlvcehtMR2feHMTMTLEQT5NKq911mSUYizc+q28ES5/OYK/pnJEmGrdIc+lKlkl9Rq9fLG1N1HVp4R6xefyhUEx+YQ7p9PX2ZjwwpgrJ3FAHkfeu08i0Sr5ePXo4Qw== nicdumz@nii
Modified Paths: -------------- trunk/pywikipedia/fixes.py trunk/pywikipedia/replace.py
Modified: trunk/pywikipedia/fixes.py =================================================================== --- trunk/pywikipedia/fixes.py 2009-02-19 01:44:44 UTC (rev 6373) +++ trunk/pywikipedia/fixes.py 2009-02-19 01:48:35 UTC (rev 6374) @@ -544,6 +544,7 @@ # The following are domains that are often-used. 'yu-tld': { 'regex': False, + 'nocase': True, 'msg': { 'de': u'Bot: Ersetze Links auf .yu-Domains', 'en': u'Robot: Replacing links to .yu domains',
Modified: trunk/pywikipedia/replace.py =================================================================== --- trunk/pywikipedia/replace.py 2009-02-19 01:44:44 UTC (rev 6373) +++ trunk/pywikipedia/replace.py 2009-02-19 01:48:35 UTC (rev 6374) @@ -627,6 +627,8 @@ wikipedia.translate(wikipedia.getSite(), fix['msg'])) if fix.has_key('exceptions'): exceptions = fix['exceptions'] + if fix.has_key('nocase'): + caseInsensitive = fix['nocase'] replacements = fix['replacements']
#Set the regular expression flags