http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10837
Revision: 10837 Author: amir Date: 2012-12-29 02:34:17 +0000 (Sat, 29 Dec 2012) Log Message: ----------- reverting r10832 and fixing up bug #3594792, per our talk in [[w:fa:User talk:Huji#?\216?\167?\216?\185?\216?\170?\216?\177?\216?\167?\216?\182]]
Modified Paths: -------------- trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py =================================================================== --- trunk/pywikipedia/cosmetic_changes.py 2012-12-28 15:13:29 UTC (rev 10836) +++ trunk/pywikipedia/cosmetic_changes.py 2012-12-29 02:34:17 UTC (rev 10837) @@ -737,8 +737,9 @@ pattern = re.compile(u'[[(' + '|'.join(namespaces) + '):.+?.\w+? *(|(([[.*?]])|.)*)?]]', re.UNICODE) #not to let bot edits in latin content - exceptions.append(re.compile(u"[A-Za-z\d]+? *?, *?[A-Za-z\d]+?")) + exceptions.append(re.compile(u"[A-Za-z\d]+? *?"*? *?, *?[A-Za-z\d]+?")) exceptions.append(pattern) + text = pywikibot.replaceExcept(text, u',', u'،', exceptions) if self.site.lang=='ckb': text = pywikibot.replaceExcept(text, ur'ه([.،_<]\s])',
pywikipedia-svn@lists.wikimedia.org