Revision: 8426 Author: xqt Date: 2010-08-22 09:36:21 +0000 (Sun, 22 Aug 2010)
Log Message: ----------- update from trunk r8395
Modified Paths: -------------- branches/rewrite/scripts/isbn.py
Modified: branches/rewrite/scripts/isbn.py =================================================================== --- branches/rewrite/scripts/isbn.py 2010-08-22 09:33:38 UTC (rev 8425) +++ branches/rewrite/scripts/isbn.py 2010-08-22 09:36:21 UTC (rev 8426) @@ -1359,7 +1359,7 @@ return i.code
def hyphenateIsbnNumbers(text): - isbnR = re.compile(r'(?<=ISBN )(?P<code>[\d-]+[Xx]?)') + isbnR = re.compile(r'(?<=ISBN )(?P<code>[\d-]+[\dXx])') text = isbnR.sub(_hyphenateIsbnNumber, text) return text
pywikipedia-svn@lists.wikimedia.org