jenkins-bot merged this change.

View Change

Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
[fix] Update fixes.py for VE ISBN bugs

Change-Id: I0f172ad2c31dc5a601ae3ff1524684ee399e9d0f
---
M pywikibot/fixes.py
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/pywikibot/fixes.py b/pywikibot/fixes.py
index 33b82f5..649bccf 100644
--- a/pywikibot/fixes.py
+++ b/pywikibot/fixes.py
@@ -393,8 +393,9 @@
},

'isbn': {
- 'generator': [r'-search:insource:/nowiki\>ISBN:?(?: | *)[0-9]/',
- '-namespace:0'],
+ 'generator': [
+ r'-search:insource:/nowiki\>ISBN:? *(?: |&\#160;)? *[0-9]/',
+ '-namespace:0'],
'regex': True,
'msg': 'isbn-formatting', # use i18n translations
'replacements': [
@@ -424,7 +425,8 @@
(r'ISBN(?: *| )((\d(-?)){12}\d|(\d(-?)){9}[\dXx])',
r'ISBN \1'),
# remove <nowiki /> tags
- (r'<nowiki>ISBN ([0-9\-xX]+)</nowiki>', r'ISBN \1'),
+ (r'<nowiki>ISBN:? *(?:&nbsp;|&#160;)? *([0-9\-xX]+)</nowiki>',
+ r'ISBN \1'),
],
'exceptions': {
'inside-tags': [

To view, visit change 433730. To unsubscribe, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I0f172ad2c31dc5a601ae3ff1524684ee399e9d0f
Gerrit-Change-Number: 433730
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Framawiki <framawiki@tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot <>