| matej_suchanek created this task. matej_suchanek added projects: Pywikibot-core, Pywikibot-replace.py. Herald added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
ibox = 'Infobox - whatever' fixes['add-infobox'] = { 'regex': True, 'exceptions': { 'text-contains': [ r'\{\{' + first_upper(ibox), r'\{\{' + first_lower(ibox), ], }, 'msg': { '_default': 'add infobox', }, 'replacements': [ build_infobox_regex(ibox), ], }
My text-contains key includes some regexes and the fix has regex: True. However, those exceptions only skip relevant articles when I include -regex to the command (which is otherwise redundant if I only use fixes).
TASK DETAIL
EMAIL PREFERENCES
To: matej_suchanek
Cc: Aklapper, matej_suchanek, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
Cc: Aklapper, matej_suchanek, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
