Revision: 4742 Author: wikipedian Date: 2007-12-21 18:46:24 +0000 (Fri, 21 Dec 2007)
Log Message: ----------- ISBN fixes: unicode bugfix
Modified Paths: -------------- trunk/pywikipedia/fixes.py
Modified: trunk/pywikipedia/fixes.py =================================================================== --- trunk/pywikipedia/fixes.py 2007-12-20 18:38:39 UTC (rev 4741) +++ trunk/pywikipedia/fixes.py 2007-12-21 18:46:24 UTC (rev 4742) @@ -336,7 +336,7 @@ # Note that these regular expressions also match valid ISBNs, but # these won't be changed. (ur'ISBN (978|979) *[- –.] *(\d+) *[- –.] *(\d+) *[- –.] *(\d+) *[- –.] *(\d)(?!\d)', r'ISBN \1-\2-\3-\4-\5'), # ISBN13 - (r'ISBN (\d+) *[- –.] *(\d+) *[- –.] *(\d+) *[- –.] *(\d|X|x)(?!\d)', r'ISBN \1-\2-\3-\4'), # ISBN10 + (ur'ISBN (\d+) *[- –.] *(\d+) *[- –.] *(\d+) *[- –.] *(\d|X|x)(?!\d)', r'ISBN \1-\2-\3-\4'), # ISBN10 ], 'exceptions': { 'inside-tags': [
pywikipedia-l@lists.wikimedia.org